diff options
author | blueness <basile@opensource.dyc.edu> | 2014-03-22 16:51:07 -0400 |
---|---|---|
committer | blueness <basile@opensource.dyc.edu> | 2014-03-22 16:51:07 -0400 |
commit | fbfcfb49a6f2bfa61e235f5fe601fa9a9f95b4ea (patch) | |
tree | 41068dda4890be00135e260e30620400997cb662 /src/udev/udevd.c | |
parent | 12c87cef17934b0909b96fdaa18b178963ec4436 (diff) | |
parent | 728baddb472075e21421ebdc5de0a6e992453fbc (diff) |
Merge pull request #90 from lhb-jr/fix_nocheckreturn
Fixed gcc warnings that call returns not checked
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r-- | src/udev/udevd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 850e4f5ef6..03de852c02 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1031,7 +1031,10 @@ int main(int argc, char *argv[]) } /* set umask before creating any file/directory */ - chdir("/"); + if(chdir("/")!= 0) { + log_error("unable to change into directory '/'"); + goto exit; + } umask(022); mkdir("/run/udev", 0755); |