Remove gratuitous and unnecessary "BusyBox" refernece in login prompt
[oweals/busybox.git] / init / start_stop_daemon.c
index 29e3d86732ad72c855fe36a0ad3a7ca64c5d7137..5765261834369ad38311a19833cb5c7c993b75fe 100644 (file)
@@ -18,7 +18,7 @@
 #include <unistd.h>
 
 #include "busybox.h"
-#include "pwd.h"
+#include "pwd_.h"
 
 static int start = 0;
 static int stop = 0;
@@ -113,6 +113,7 @@ pid_is_exec(int pid, const char *exec)
        sprintf(buf, "/proc/%d/cmdline", pid);
        fp = fopen(buf, "r");
        if (fp && fgets (buf, sizeof (buf), fp) ) {
+               fclose(fp);
            if (strncmp (buf, exec, strlen(exec)) == 0)
                return 1;
        }