Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/printutils
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (8 years ago)
- Location:
- branches/3.3
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/printutils/Config.src
r2725 r3621 8 8 INSERT 9 9 10 config LPD11 bool "lpd"12 default y13 help14 lpd is a print spooling daemon.15 16 config LPR17 bool "lpr"18 default y19 help20 lpr sends files (or standard input) to a print spooling daemon.21 22 config LPQ23 bool "lpq"24 default y25 help26 lpq is a print spool queue examination and manipulation program.27 28 10 endmenu -
branches/3.3/mindi-busybox/printutils/Kbuild.src
r2725 r3621 5 5 lib-y := 6 6 7 lib-$(CONFIG_LPD) += lpd.o 8 lib-$(CONFIG_LPR) += lpr.o 9 lib-$(CONFIG_LPQ) += lpr.o 7 INSERT -
branches/3.3/mindi-busybox/printutils/lpd.c
r3232 r3621 70 70 * mv -f ./"$DATAFILE" save/ 71 71 */ 72 //config:config LPD 73 //config: bool "lpd" 74 //config: default y 75 //config: help 76 //config: lpd is a print spooling daemon. 77 78 //applet:IF_LPD(APPLET(lpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) 79 80 //kbuild:lib-$(CONFIG_LPD) += lpd.o 72 81 73 82 //usage:#define lpd_trivial_usage … … 201 210 goto unsupported_cmd; 202 211 if (spooling & (1 << (s[0]-1))) { 203 p rintf("Duplicated subcommand\n");212 puts("Duplicated subcommand"); 204 213 goto err_exit; 205 214 } 206 215 // get filename 207 *strchrnul(s, '\n') = '\0';216 chomp(s); 208 217 fname = strchr(s, ' '); 209 218 if (!fname) { 210 219 // bad_fname: 211 p rintf("No or bad filename\n");220 puts("No or bad filename"); 212 221 goto err_exit; 213 222 } … … 220 229 expected_len = bb_strtou(s + 1, NULL, 10); 221 230 if (errno || expected_len < 0) { 222 p rintf("Bad length\n");231 puts("Bad length"); 223 232 goto err_exit; 224 233 } … … 226 235 // SECURITY: 227 236 // ctrlfile can't be big (we want to read it back later!) 228 p rintf("File is too big\n");237 puts("File is too big"); 229 238 goto err_exit; 230 239 } -
branches/3.3/mindi-busybox/printutils/lpr.c
r3232 r3621 12 12 * See RFC 1179 for protocol description. 13 13 */ 14 //config:config LPR 15 //config: bool "lpr" 16 //config: default y 17 //config: help 18 //config: lpr sends files (or standard input) to a print spooling daemon. 19 //config: 20 //config:config LPQ 21 //config: bool "lpq" 22 //config: default y 23 //config: help 24 //config: lpq is a print spool queue examination and manipulation program. 25 26 //applet:IF_LPQ(APPLET_ODDNAME(lpq, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpq)) 27 //applet:IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr)) 28 29 //kbuild:lib-$(CONFIG_LPR) += lpr.o 30 //kbuild:lib-$(CONFIG_LPQ) += lpr.o 14 31 15 32 //usage:#define lpr_trivial_usage
Note:
See TracChangeset
for help on using the changeset viewer.