When mounting a ro fs rw, print warning and then mount it ro. Patch
[oweals/busybox.git] / logname.c
index 4b4483cc166cd276fcb27b1041dc236d0b27bac7..a0aff42d648611b9c840e86ed10baf42e24c3f1a 100644 (file)
--- a/logname.c
+++ b/logname.c
 #include "internal.h"
 #include <stdio.h>
 
-static const char logname_usage[] = "logname\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nPrint the name of the current user.\n"
-#endif
-       ;
-
 extern int logname_main(int argc, char **argv)
 {
        char *user = xmalloc(9);
@@ -41,6 +35,6 @@ extern int logname_main(int argc, char **argv)
                puts(user);
                exit(TRUE);
        }
-       fprintf(stderr, "no login name\n");
+       errorMsg("no login name\n");
        return(FALSE);
 }