diff --git a/src/finit.c b/src/finit.c index b6c5c965..86538bb6 100644 --- a/src/finit.c +++ b/src/finit.c @@ -345,8 +345,10 @@ int main(int argc, char* argv[]) */ chdir("/"); umask(0); - mount("none", "/proc", "proc", 0, NULL); - mount("none", "/sys", "sysfs", 0, NULL); + if (mount("none", "/proc", "proc", 0, NULL)) + _pe("Failed mounting /proc"); + if (mount("none", "/sys", "sysfs", 0, NULL)) + _pe("Failed mounting /sysfs"); if (fisdir("/proc/bus/usb")) mount("none", "/proc/bus/usb", "usbfs", 0, NULL);