X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=printutils%2Flpr.c;h=fb7860d414e75330024a95575ae266867658189b;hb=0bb35e19a73ecbb9694172300a5530dbb8156bb4;hp=25cbcbc5e5df3ccf1ab8348127c4ee8e9dc44db8;hpb=c445758708e4ca033005b91703770c9d132ba378;p=oweals%2Fbusybox.git diff --git a/printutils/lpr.c b/printutils/lpr.c index 25cbcbc5e..fb7860d41 100644 --- a/printutils/lpr.c +++ b/printutils/lpr.c @@ -7,7 +7,7 @@ * Original idea and code: * Walter Harms * - * 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;