diff options
author | Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org> | 2012-11-18 10:49:47 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-11-18 10:14:19 -0500 |
commit | c189ab04cbaa2f011da0210f2c885e6f693f1d6c (patch) | |
tree | e013ea0467292d81b5318106985d3bfeec6a333f /src/udev/udevd.c | |
parent | 2af83cafa0f410edc1d60029edfd457e121114a4 (diff) |
Fix unused result warnings
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r-- | src/udev/udevd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index b9922f51dd..bd650a1f6b 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1157,7 +1157,11 @@ int main(int argc, char *argv[]) } /* set umask before creating any file/directory */ - chdir("/"); + if (chdir("/") == -1) { + fprintf(stderr, "Cannot chdir to /\n"); + log_error("Cannot chdir to /\n"); + goto exit; + } umask(022); mkdir("/run/udev", 0755); |