ps,top: add an option to show threads. +260 bytes of code
[oweals/busybox.git] / printutils / lpr.c
index 25cbcbc5e5df3ccf1ab8348127c4ee8e9dc44db8..f21cffddfa9cb5346b1289248de1aab7a8ea5b1e 100644 (file)
@@ -65,7 +65,7 @@ int lpqr_main(int argc UNUSED_PARAM, char *argv[])
        const char *server = "localhost"; // server[:port] of printer queue
        char *hostname;
        // N.B. IMHO getenv("USER") can be way easily spoofed!
-       const char *user = bb_getpwuid(NULL, -1, getuid());
+       const char *user = xuid2uname(getuid());
        unsigned job;
        unsigned opts;
        int fd;