summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-09-18 18:46:21 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-09-18 18:46:21 -0400
commit15f72fb47214133818a9b20ad4d4cb3d8c4fa508 (patch)
tree07ca3c178e549b9679a75d8ab8abb28aa4a5dc2f /src/udev/udevd.c
parent1e446d862a89ba3475a9df516a9e57a590e9fcd8 (diff)
src/shared: import upstream code needed for recent commits
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 5b0db0a0b1..cd94724f54 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1060,6 +1060,7 @@ static int parse_argv(int argc, char *argv[]) {
{ "version", no_argument, NULL, 'V' },
{}
};
+
int c;
assert(argc >= 0);
@@ -1068,7 +1069,6 @@ static int parse_argv(int argc, char *argv[]) {
while ((c = getopt_long(argc, argv, "c:de:DtN:hV", options, NULL)) >= 0) {
int r;
-
switch (c) {
case 'd':
@@ -1138,7 +1138,6 @@ int main(int argc, char *argv[]) {
goto exit;
log_set_target(LOG_TARGET_AUTO);
- log_parse_environment();
log_open();
udev_set_log_fn(udev, udev_main_log);
@@ -1163,10 +1162,7 @@ int main(int argc, char *argv[]) {
label_init("/dev");
/* set umask before creating any file/directory */
- if(chdir("/")!= 0) {
- log_error("unable to change into directory '/'");
- goto exit;
- }
+ chdir("/");
umask(022);
mkdir("/run/udev", 0755);