aboutsummaryrefslogtreecommitdiff
path: root/miscutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* raidautorun: make it NOEXECDenys Vlasenko2017-08-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* setserial: make it NOEXECDenys Vlasenko2017-08-061-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* setserial: code shrink, better --help textDenys Vlasenko2017-08-061-45/+46
| | | | | | | | function old new delta packed_usage 31747 31749 +2 setserial_main 1152 1132 -20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lspci,lsscsi,lsusb: make them NOEXECDenys Vlasenko2017-08-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make trim() return pointer to terminating NULDenys Vlasenko2017-08-051-2/+1
| | | | | | | | | | | function old new delta trim 80 90 +10 angle_address 56 50 -6 sysctl_main 282 273 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: +10/-15) Total: -5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* partprobe: make it NOEXECDenys Vlasenko2017-08-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* runlevel: make it NOEXECDenys Vlasenko2017-08-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chat: trim help textDenys Vlasenko2017-08-041-2/+2
| | | | | | | | | Noticed while auditing nofork/noexec status function old new delta packed_usage 31777 31747 -30 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* microcom: require exactly one non-optionDenys Vlasenko2017-08-041-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* new NOFORKs: pwdx,kill[all5],ttysize,realpath,readlink NOEXECs: date,resizeDenys Vlasenko2017-08-031-1/+1
| | | | | | | | | | function old new delta run_nofork_applet 258 280 +22 readlink_main 112 123 +11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 33/0) Total: 33 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* do not use `a' quoting style in commentsDenys Vlasenko2017-08-022-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* config: more tweaking of help textsDenys Vlasenko2017-07-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* config: trim/improve item names and help texts, take 2Denys Vlasenko2017-07-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* crond: do not assume setenv() does not leakDenys Vlasenko2017-07-221-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* crond: allow $SHELL and starting user's shell override DEFAULT_SHELL. Closes ↵Denys Vlasenko2017-07-221-2/+7
| | | | | | | | | | 6458 function old new delta crond_main 1134 1149 +15 fork_job 453 454 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* config: deindent all help textsDenys Vlasenko2017-07-2138-213/+212
| | | | | | Those two spaces after tab have no effect, and always a nuisance when editing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Update remaining menuconfig items with approximate applet sizesDenys Vlasenko2017-07-195-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hdparm: remove contradicting size info in config helpDenys Vlasenko2017-07-181-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Update menuconfig items with approximate applet sizesDenys Vlasenko2017-07-1832-41/+41
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ttysize: if stdin is not tty, try stdout, then stderrDenys Vlasenko2017-07-161-2/+5
| | | | | | | | function old new delta ttysize_main 135 175 +40 packed_usage 31686 31672 -14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* crond: code shrinkDenys Vlasenko2017-07-091-5/+4
| | | | | | | function old new delta load_crontab 936 925 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* crond: move misplaced commentDenys Vlasenko2017-07-091-13/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* crond: support @daily etcDenys Vlasenko2017-07-081-19/+122
| | | | | | | | | | | | | | function old new delta start_jobs - 348 +348 load_crontab 766 936 +170 static.SpecAry - 96 +96 crond_main 1424 1134 -290 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/1 up/down: 614/-290) Total: 324 bytes Based on patch by Jonathan Kolb <kolbyjack@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* watchdog: do not use argc, other cleanupsDenys Vlasenko2017-07-081-15/+21
| | | | | | | function old new delta watchdog_main 298 291 -7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* watchdog: stop watchdog first on startupMatt Spinler2017-07-081-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | Some watchdog implementations may do things other than issue a reboot on a watchdog timeout. In this case, there's the possibility of restarting this program from the state of the watchdog device not being properly stopped (done by writing a 'V' and closing the device). Since it wasn't stopped, the driver may not be able to restart the watchdog when this program reopens it and starts pinging it. To fix this, the code will always first issue the stop when it starts up. function old new delta shutdown_on_signal - 32 +32 watchdog_main 268 298 +30 shutdown_watchdog - 25 +25 watchdog_shutdown 41 - -41 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/0 up/down: 87/-41) Total: 46 bytes Signed-off-by: Matt Spinler <spinler@us.ibm.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* beep: disallow FEATURE_BEEP_FREQ = 0 in configurationDenys Vlasenko2017-07-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* makedevs: code shrinkDenys Vlasenko2017-07-061-14/+15
| | | | | | | function old new delta makedevs_main 1071 1052 -19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* makedevs: allow much longer filenamesDenys Vlasenko2017-07-061-5/+7
| | | | | | | | | function old new delta makedevs_main 1056 1071 +15 Patch by Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* time: inplement -f FMTDenys Vlasenko2017-04-281-2/+5
| | | | | | | | function old new delta time_main 1076 1134 +58 packed_usage 31577 31572 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* time: implement -a, -o FILETommi Rantala2017-04-281-10/+31
| | | | | | | | | function old new delta time_main 1052 1076 +24 packed_usage 31571 31577 +6 Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* time: document -p in usageTommi Rantala2017-04-281-1/+2
| | | | | Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lsscsi: new appletMarkus Gothe2017-04-181-0/+123
| | | | | | | | | | | | | | function old new delta lsscsi_main - 326 +326 applet_names 2613 2620 +7 applet_main 1512 1516 +4 applet_install_loc 189 190 +1 packed_usage 31566 31560 -6 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 3/1 up/down: 338/-6) Total: 332 bytes Signed-off-by: Markus Gothe <nietzsche@lysator.liu.se> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Spelling fixes in comments, documentation, tests and examplesDenys Vlasenko2017-04-173-3/+3
| | | | | | By klemens <ka7@github.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Sort some miscutils/ applets into coreutils or util-linuxDenys Vlasenko2017-04-1210-1480/+0
| | | | | | No code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* partprobe: new appletDenys Vlasenko2017-04-111-0/+56
| | | | | | | | | | | | | function old new delta partprobe_main - 79 +79 packed_usage 31485 31511 +26 applet_names 2608 2618 +10 applet_main 1512 1516 +4 applet_install_loc 189 190 +1 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 4/0 up/down: 120/0) Total: 120 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Replace int -> uint to avoid signed integer overflowRostislav Skudnov2017-02-041-1/+1
| | | | | | | | | | An example of such an error (should be compiled with DEBUG_SANITIZE): runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Signed-off-by: Rostislav Skudnov <rostislav@tuxera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* taskset: simplify code a bit; tweak --helpDenys Vlasenko2017-01-301-11/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* taskset: separate "current" and "new" stringsDenys Vlasenko2017-01-291-2/+2
| | | | | | | | | | Better for constant sharing: text data bss dec hex filename 912997 485 6856 920338 e0b12 busybox_old 912988 485 6856 920329 e0b09 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* taskset: rewrite to be task size-agnosticDenys Vlasenko2017-01-291-102/+103
| | | | | | | | | | function old new delta packed_usage 31130 31190 +60 taskset_main 623 525 -98 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 60/-98) Total: -38 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add comment about APPLET_ODDNAME formatDenys Vlasenko2017-01-292-6/+8
| | | | | | It confused me more than once Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make --help texts smallerDenys Vlasenko2017-01-211-1/+1
| | | | | | | function old new delta packed_usage 31035 30968 -67 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make --help texts more uniformDenys Vlasenko2017-01-211-2/+2
| | | | | | | function old new delta packed_usage 31062 31035 -27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: consolidate the code to set termios unbuffered modeDenys Vlasenko2017-01-114-10/+10
| | | | | | | | | | | | | | | | function old new delta set_termios_to_raw - 116 +116 count_lines 72 74 +2 powertop_main 1458 1430 -28 top_main 943 914 -29 more_main 759 714 -45 fsck_minix_main 2969 2921 -48 conspy_main 1197 1135 -62 rawmode 99 36 -63 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/6 up/down: 118/-275) Total: -157 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Big cleanup in config help and descriptionDenys Vlasenko2017-01-104-12/+9
| | | | | | | | | | | | | Redundant help texts (one which only repeats the description) are deleted. Descriptions and help texts are trimmed. Some config options are moved, even across menus. No config option _names_ are changed. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Code style fixes, no code changesDenys Vlasenko2016-11-282-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* makedevs: make special node creation idempotentDenys Vlasenko2016-11-271-2/+7
| | | | | | | | | When makedevs is called for a second time with the same device file, it fails because the files already exist and mknod() gives -EEXIST. Ignore EEXIST errors. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Remove trailing empty linesDenys Vlasenko2016-11-231-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all miscutils/* applets to "new style" applet definitionsDenys Vlasenko2016-11-2236-40/+147
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Split miscutils/Config.src items into miscutils/*.c filesDenys Vlasenko2016-11-2236-533/+498
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* man: remove -Tascii from nroff invocationDenys Vlasenko2016-10-311-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>