aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-07-18 13:37:01 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-07-18 13:37:01 +0200
commit328c1d221e2c1e7f42024b6ceec8b6972d3c77bc (patch)
tree47f742a976fdddcc2707bcc90606bdcb90c87f9c /src
parent13f00c707e4738dfa0348bcc876ac989cf949a75 (diff)
Coverity CID 301774: do not call any log function after chroot but before chdir("/")
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index 4c65900..c9a1463 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -425,10 +425,8 @@ int safe_chroot(const char *newroot)
}
s = chroot(".");
- if (s) {
- E_STRERR("Change root directory to '%s'", ".");
+ if (s)
return 1;
- }
s = chdir("/");
if (s) {