udhcpd: reduce stack usage by ~700 bytes. +28 bytes code size
[oweals/busybox.git] / printutils / lpr.c
index 25cbcbc5e5df3ccf1ab8348127c4ee8e9dc44db8..fb7860d414e75330024a95575ae266867658189b 100644 (file)
@@ -7,7 +7,7 @@
  * Original idea and code:
  *      Walter Harms <WHarms@bfs.de>
  *
- * Licensed under GPLv2, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2, see file LICENSE in this source tree.
  *
  * See RFC 1179 for protocol description.
  */
@@ -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;