instance, ujail: wire hostname (-h) option
[project/procd.git] / initd / mkdev.c
index 5ac6e957c5bddcd35da0e93a3449f715e21d05ec..e6d3d0c2920414847617b38ed92a18a0214b1d51 100644 (file)
@@ -121,7 +121,5 @@ int mkdev(const char *name, int _mode)
        n_patterns = 1;
        find_devs(true);
        find_devs(false);
-       chdir("/");
-
-       return 0;
+       return chdir("/");
 }