This one fixes a crash if you run busybox lpd < /dev/null
diff --git a/printutils/lpd.c b/printutils/lpd.c
index ce5944026..408695f39 100644
--- a/printutils/lpd.c
+++ b/printutils/lpd.c
@@ -133,6 +133,8 @@ int lpd_main(int argc UNUSED_PARAM, char *argv[])
// read command
s = queue = xmalloc_read_stdin();
+ if (!s)
+ return EXIT_SUCCESS;
// we understand only "receive job" command
if (2 != *queue) {
unsupported_cmd:
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox