Ron Yorston | 0b6ec06bebc | kill: add '--' option to separate options from arguments
Using a negative pid to send TERM to a process group result... | | |
Denys Vlasenko | 14551b7036a | xargs: optional support for -P NUM. Closes 9511
Based on patch by Johannes Schindelin <johannes.schindelin@gmx.de>
... | | |
Denys Vlasenko | b270be3fb3a | xargs: code shrink
function old new delta
xargs_main ... | | |
Denys Vlasenko | 9c47c43e073 | sed: in '/regexp/cmd1;//cmd2', cmd2 should use the same regexp as cmd1
function ... | | |
Denys Vlasenko | 8b77a9ea81a | *: fix fallout from opt_complementary conversion
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 12ffefb5490 | ash: more s/error/perror/ for better error reporting
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Johannes Schindelin | 687aac056d0 | ash: when cd fails, say why
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Denys Vla... | | |
Johannes Schindelin | 20a63b2c18e | ash: report reason when a script file could not be opened
It is always nicer to give the user some sort of indicatio... | | |
Ron Yorston | 6bafcfb67a3 | tar: fix handling of first argument without '-'
The following no longer works as expected:
$ ./busybox tar xfz t... | | |
Denys Vlasenko | 3505e38bd1e | sendmail: fix segfault if "To: email1,email2" is used
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Ron Yorston | e837a0dbbeb | libarchive: fix build failure on NOMMU systems
In the old code fd was an argument, now we need to get the file descr... | | |
Ron Yorston | 0ec0fac0459 | ps: fix build failure if FEATURE_PS_TIME is disabled
The global seconds_since_boot is only defined if FEATURE_PS_TIM... | | |
Denys Vlasenko | efcc89b21b0 | rpm,rpm2cpio: do not compile not-configurred parts of rpm.c
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 7d834c9bb43 | run-init: if doing dry run, do not require pid==1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Kang-Che Sung | 753c4045e4f | ps: allow ps config options if minips is enabled
Follow-up of commit ab77e81a8527fa11a4f9392d97c2da037d6f4f98
"klibc... | | |
Denys Vlasenko | bbc26c6934f | run-init: implement -n "dry run"
function old new delta
switch_roo... | | |
Denys Vlasenko | 200bcc851ac | run-init: new applet
function old new delta
switch_root_main ... | | |
Denys Vlasenko | 44b3f2ffbc0 | libbb: move capability names code to libbb
function old new delta
... | | |
Denys Vlasenko | ec2482e966c | setpriv: code shrink
function old new delta
parse_cap ... | | |
Denys Vlasenko | 20c0d07e952 | nuke: shorten help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ab77e81a852 | klibc-utils: new applets: resume, nuke, minips
minips is a pure alias to ps, just in case someone needs 100% klibc-u... | | |
Denys Vlasenko | 79747415d6d | setpriv: accept any case in capability names
This should work: setpriv --inh-caps -SyS_ReSOuRCE sh
Signed-off-by: D... | | |
Denys Vlasenko | fec2b1f79dc | ash: stage backported LINENO support as a separate patch
Looks biggish and not particularly useful, but may be easie... | | |
Denys Vlasenko | fb8348b3645 | telnet: "-a" + "-l USER" should respect USER
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 81e26c4b8ed | Bump version to 1.27.2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 048491fbdcc | hush: trivial code shrink in builtin_getopts
function old new delt... | | |
Denys Vlasenko | a1799db4ac6 | awk: stop on first non-option, closes 9861
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | e440b39416e | *: stop using atexit in non-debug build: saves ~260 in bss with musl
"builtin" below is atexit's 32-element global a... | | |
Denys Vlasenko | cf686ae3b40 | syslogd,logger: code shrink for musl
function old new delta
syslog... | | |
Denys Vlasenko | dce39c98944 | fsck_minix,mkfs_minix: fix "strict-aliasing" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | c4367d72272 | uevent: placate gcc
How sizeof() can be an aliasing problem?
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | d80302db999 | top: switch to malloced "globals".
This seems to be more efficient:
function ... | | |
Denys Vlasenko | 9832bbaba96 | ash: unset OPTARG if getopts exits 1, support OPTERR=0 behavior
function ... | | |
Denys Vlasenko | 4476c703015 | ash,hush: comment and debug tweaks, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 0485b677d2c | ash: one "current line = 1" might be missing, fix that
I'm not sure this is necessary, but dash has this init here.
... | | |
Denys Vlasenko | c2aea025bba | ash: update testsuite (we now error out on ${#=})
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 452cc1d9bdd | ash: [PARSER] Catch variable length expansions on non-existant specials
Upstream commit:
Date: Thu, 30 Oct 2014... | | |
Denys Vlasenko | 647d8afe869 | build system: remove unused CONFIG_FEATURE_HAVE_RPC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 007ce9f807c | shell: tweak getopts tests, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 419db0391e4 | hush: implement "silent" optstrings of ":opts"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 129e1ce72c2 | hush: add a test which fails due to uclibc bug in getopt()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | d16e612c93d | hush: fix redirect code (was using uninitialized variables)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 9a7d0a01918 | shell: add OPTARG poisoning to getopt_optarg.tests
ash fails this!
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | 81f962f3df0 | hush: teach getopts to set/unset OPTARG
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 74d40589288 | hush: getopts builtin
function old new delta
builtin_getopts ... | | |
Denys Vlasenko | 4628945cd8d | ash: fix "unset OPTIND" throwing an error message
Added test was failing quite severely. Now only one subtest fails
... | | |
Denys Vlasenko | 11f2e99c13b | hush: optional times builtin
function old new delta
builtin_times ... | | |
Denys Vlasenko | c52dc0e8369 | fdisk: typo fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 9c7c63b5c2f | ps: improve TIME column for large times: showing "14453:50" is not good
function ... | | |
Denys Vlasenko | 9a6f62fd517 | ps: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 1fd8e662039 | ps: stop using AT_CLKTCK, there are more standard ways
function old ... | | |
Denys Vlasenko | 5da5365d3ca | rpm,rpm2cpio: INIT_G() was missing (it is a nop here so far)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | bac929b99b4 | Hopefully fix "will break strict-aliasing rules" warning for get_le32
Signed-off-by: Denys Vlasenko <vda.linux@googl... | | |
Denys Vlasenko | bc9bbeb2b81 | libarchive: do not extract unsafe symlinks unless $EXTRACT_UNSAFE_SYMLINKS=1
function ... | | |
Denys Vlasenko | 0cf64c8b5d8 | rpm2cpio: handle LZMA compressed rpms. closes 10166
function old new... | | |
Denys Vlasenko | 3c9b8fe2523 | rpm2cpio: use rpm_gettags
function old new delta
rpm_gettags ... | | |
Denys Vlasenko | e5650a40d46 | rpm: prepare rpm_gettags for reuse in rpm2cpio
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 3fa9262dcd4 | rpm,rpm2cpio: put both sources into one file, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 3bc2317c610 | Update NOFORK_NOEXEC.lst
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 890bd5de511 | ipcs: tweak output orer to match util-linux 2.28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | c6ce1c9ca3e | ipcrm,ipcs: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 7943be1e13d | ipcrm: code shrink
function old new delta
ipcrm_main ... | | |
Denys Vlasenko | a4d4ab04c37 | vconfig: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 9be166b5dd5 | rpm: code shrink
function old new delta
rpm_getstr0 ... | | |
Denys Vlasenko | cde46f75cbe | shell: more efficient check for EOL in read
function old new delta... | | |
Denys Vlasenko | 1f41c885fca | hush: implement -d DELIM option for 'read'
The POSIX standard only requires the 'read' builtin to handle '-r':
http:... | | |
Johannes Schindelin | 3bef5d89b0c | ash: implement -d DELIM option for read
The POSIX standard only requires the read builtin to handle -r:
http://pubs.... | | |
Xabier Oneca | 5856dc74be7 | chcon: show '--reference' in help text only if LONG_OPTS=y
Signed-off-by: Xabier Oneca <xoneca@gmail.com>
Signed-off... | | |
Denys Vlasenko | 4974917c5e8 | start-stop-daemon: show only short options in --help text
function old ... | | |
Denys Vlasenko | 89d8753c550 | ftpgetput: show only short options in --help text
function old new ... | | |
Denys Vlasenko | 22542eca18e | getopt32: remove opt_complementary
function old new delta
vgetopt3... | | |
Denys Vlasenko | 036585a911a | getopt32: remove applet_long_options
FEATURE_GETOPT_LONG made dependent on LONG_OPTS.
The folloving options are rem... | | |
Denys Vlasenko | 00677b5e35d | *: fix up use of "getopt_longopts" for longopts not in getopt applet
Signed-off-by: Denys Vlasenko <vda.linux@google... | | |
Denys Vlasenko | ddd1ee44436 | libbb: simplify NOFORK/NOEXEC defines, move set_task_comm to libbb
Signed-off-by: Denys Vlasenko <vda.linux@googlema... | | |
Denys Vlasenko | 8858a9864e1 | libbb: rearrange NOFORK/NOEXEC code, logic is not changed
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 73adef14b25 | ipcalc: trim help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 90ad4ba9db2 | ipcalc,rdev: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | dbbc3f2e644 | dumpleases: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | af5d0086694 | expr: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ec98e3a628b | freeramdisk: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ae84418d269 | losetup: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | a907b828d6e | ifenslave: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 93c1a25c59e | ifenslave: remove longopts from --help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 354b104df1f | fatattr: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | fc9efcb53bf | df: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 76b65624b93 | unxz: get_le32 macro is obviously wrong
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ed4393bdc7a | dnsdomainname,hostname: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 80e8e3cc054 | noexec: consolidate code
function old new delta
run_noexec_applet_... | | |
Denys Vlasenko | c9c1ccc4ed7 | noexec: do GETOPT_RESET() before entering APPLET_main()
hush -c 'yes | head -1' was not happy.
function ... | | |
Denys Vlasenko | f2cf1cc7162 | noexec: set comm field for noexecs
function old new delta
set_task... | | |
Denys Vlasenko | 248a67fb75a | free,stat: make NOEXEC
pkill/pgrep/pidof uncovered another quirk: what about noexec's _process names_?
Signed-off-b... | | |
Denys Vlasenko | 316d38e2588 | setconsole: much better help text
Was:
Usage: setconsole [-r] [DEVICE]
Redirect system console output to D... | | |
Denys Vlasenko | 1a1203ff890 | users,w,who,uptime,renice: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 798b94518e6 | ubi tools: ubiupdatevol supports "-" input and actually respects -s SIZE
Decided to not make any flash applets NOEXE... | | |
Denys Vlasenko | b34eb4a591f | ubiupdatevol: fix bug with -sSIZE: was ignoring IMAGE_FILE
While at it, fix help text
Signed-off-by: Denys Vlasenko... | | |
Denys Vlasenko | 115e0a71995 | ubi_tools: a bit smaller applet resolution code
function old new d... | | |
Denys Vlasenko | 4dea1edd08a | script: -f means "flush", not "fsync"
function old new delta
packe... | | |
Denys Vlasenko | 269b36a49a6 | script: make -t[FILE] compatible with util-linux
function old new ... | | |
Denys Vlasenko | dd55d5d53c3 | script: make -t independent of scriptreplay
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 7b8372b8192 | add/remove-shell,add/deluser,add/delgroup: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | bfc66d49806 | nbd-client: make it NOEXEC, stop using argc
function old new delta... | | |
Denys Vlasenko | 9536ef7c985 | makedevs: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 7389662dbf5 | svc: remove superfluout INIT_G()
function old new delta
sv ... | | |
Denys Vlasenko | b9be7807056 | sv,svc: fix NOEXEC fallout
function old new delta
svc_main ... | | |
Denys Vlasenko | 184c738582e | stty: fix bb_common_bufsiz1 use in NOEXEC
function old new delta
s... | | |
Denys Vlasenko | 035e71578e9 | readprofile: do not close/free just before exiting
function old new ... | | |
Denys Vlasenko | 277081e0a4e | blkdiscard: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | bf18239e3d6 | blkid: make it NOEXEC, make FEATURE_BLKID_TYPE=y default
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 86e07f6893c | brctl: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 0f14f41e72d | ash: do not set a signal to SIG_DFL if it already is
function old ne... | | |
Denys Vlasenko | ed7d118dd0c | adjtimex: make it NOFORK
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | c8e29317e97 | adjtimex: zero-fill whole structure, to be on the safe side
function old... | | |
Denys Vlasenko | a894a4beddf | raidautorun: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 1b280e46520 | loadfont,setfont: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 5cb907fffc2 | setconsole: make it NOEXEC
BTW, I failed to make it do what it meant to do.
ioctl appears to succeed, but kernel's o... | | |
Denys Vlasenko | ab233811009 | setconsole: since SUSE version has no -r, nuke our --reset longopt
Why we even bother inventing incompatible longopt... | | |
Denys Vlasenko | b83db4ddae4 | setkeycodes: make it NOEXEC, better --help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 341ce0a31eb | setlogcons: make it NOEXEC, better --help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 97b738d359c | setserial: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 08e66a81495 | setserial: code shrink, better --help text
function old new delta
... | | |
Denys Vlasenko | 2262746e2b7 | slattach: code shrink, better --help text
function old new delta
t... | | |
Denys Vlasenko | a759b22c29f | nameif: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | fbecca1bed1 | Tweak outdated documentation and comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 9a58cc0f7fb | tunctl: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ae17ba0924c | kbd_more: make it NOEXEC, remove redundant opt clearing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 32b60cc0db9 | kbd_mode: try harder to find console device if -C TTY is not given
Was (under X):
$ ./busybox_old kbd_mode
kbd_mod... | | |
Denys Vlasenko | 6517bbc76c5 | kbd_mode: show "off" mode too
function old new delta
kbd_mode_main... | | |
Denys Vlasenko | 3239ab89c9b | lspci,lsscsi,lsusb: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 83a6c8d58b3 | umount: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 00c1811d87e | pstree: make it NOEXEC
While at it, documet why ps can't be NOEXEC.
Signed-off-by: Denys Vlasenko <vda.linux@google... | | |
Denys Vlasenko | 99125c04950 | chattr,lsattr,tune2fs: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | d3147cd5c38 | chattr: fix option parsing to accept more cryptic option combos
function ... | | |
Denys Vlasenko | caf26b36f3c | sysctl: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 50db1f29bf9 | sysctl: recognize ";comment" and "<whitespace>#comment" lines
function o... | | |
Denys Vlasenko | 20077c14299 | libbb: make trim() return pointer to terminating NUL
function old ne... | | |
Denys Vlasenko | 9cf89cdf84f | sysctl: fix file parsing, do not require -w for VAR=VAL
function old ... | | |
Denys Vlasenko | feb79e8742e | cryptpw, mkpasswd: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ff53bee7230 | chvt, deallocvt, dumpkmap, fgconsole, loadkmap: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail... | | |
Denys Vlasenko | fdb92359e47 | pivot_root: make it NOFORK
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 9c49d6e11b5 | partprobe: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | a453ca576fb | sv, svc: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 0b16a679592 | svc: fix a case where with more than option, getopt() state is not reset
Signed-off-by: Denys Vlasenko <vda.linux@go... | | |
Denys Vlasenko | 754e9f96def | svc: fix a case where with more than option, getopt() state is not reset
Signed-off-by: Denys Vlasenko <vda.linux@go... | | |
Denys Vlasenko | 9f59849daab | blockdev, fsfreeze, fstrim, mountpoint: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | b182e9ad601 | libbb: use _exit, not exit, in bb_daemonize_or_rexec()
By the time we reach exit in parent, child already exited or ... | | |
Denys Vlasenko | 692eeb81a4c | stty: make in NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 5c527dc57e7 | make 17 state-changing execing applets (ex: "nice PROG ARGS") noexec
The applets with "<applet> [opts] PROG ARGS" AP... | | |
Denys Vlasenko | 6514785f958 | mesg: make in NOFORK
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 947b2391c07 | pmap: tweak help text, show usage if no params are given
Noticed while auditing nofork/noexec status
function ... | | |
Denys Vlasenko | 83d7785e413 | runlevel: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 6bec24c4f5a | mktemp: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 74c05f5b2cf | chat: trim help text
Noticed while auditing nofork/noexec status
function ... | | |
Denys Vlasenko | dd5a40246b9 | getopt32: move support for "always treat first arg as option" to users (tar/ar)
Now getopt() never leaks (and never ... | | |
Denys Vlasenko | 727948e585c | getopt32: factor out code to treat all args as options
Working towards making getopt32() xmalloc-free
function ... | | |
Denys Vlasenko | 7f9d62d7f5b | tweak NOFORK_NOEXEC.lst
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | f8cdc7a2bcd | ash: BASH_XTRACEFD bashism
Based on patch by Johannes Schindelin <johannes.schindelin@gmx.de>
function ... | | |
Natanael Copa | 4989d05174e | unzip: fix regression on big-endian machines
This fixes a regression which was introduced with commit 2a0867a5
("unz... | | |
Johannes Schindelin | 7344755823d | ash: remove no-longer-used variable
As of 035486c75 (ash: significant overhaul of redirect saving logic,
2017-07-31)... | | |
Denys Vlasenko | d329e34c96e | ash: INT_OFF/INT_ON around run_nofork_applet()
function old new de... | | |
Denys Vlasenko | 49e6bf2db92 | sheel: improve comments on signal handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 3346b4afc5c | modutils: make them NOEXEC except depmod
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 21e5d0f841c | config: FEDORA_COMPAT option (so far only tweaks uname)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | cf792a58abc | NOFORK fixes
"rm -i FILE" and "yes" can now be interrupted by ^C in hush.
This also now works:
$ usleep 19999999
^C... | | |
Denys Vlasenko | 0a53eadea52 | tls: fix pstm asm constraint problem
function old new delta
pstm_s... | | |
Denys Vlasenko | 25f07f58984 | tls: fix build problem on non-static i386
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 6bb89e16226 | libbb: safe_write should not return EINTR
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 310bcec4dcf | shuf: fix random line selection. Closes 9971
"""
For example, given input file:
foo
bar
baz
after shuf... | | |
Denys Vlasenko | 4dc86699b57 | microcom: require exactly one non-option
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | cfd392bea9f | ash: add a fixme comment at run_nofork_applet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 19c9f31af17 | nofork: fix a bug uncovered by hush testsuite (forgotten fflush)
function ... | | |
Denys Vlasenko | 72d725d7cc6 | getopt: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 39194f03091 | new NOFORKs: pwdx,kill[all5],ttysize,realpath,readlink NOEXECs: date,resize
function ... | | |
Denys Vlasenko | 663ae52676e | config: FEDORA_COMPAT option (so far only tweaks uname)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 819b47aa357 | new NOFORKs: clear, nproc, tty, uname, arch, unlink, which
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 39701204cfa | hush: do not accept "if() { echo; }" function def
function old new ... | | |
Denys Vlasenko | 84ea60ed65f | line editing: make read_line_input() not take timeout param
It's almost always -1.
function ... | | |
Denys Vlasenko | dd4b446f767 | hush: make SIGINT handling visually less confusing
$ echo $$
18448
$ echo $? <wait here, run "kill -INT 18448" in ot... | | |
Denys Vlasenko | 7c40ddd9500 | NOFORK fixes
"rm -i FILE" and "yes" can now be interrupted by ^C in hush.
This also now works:
$ usleep 19999999
^C... | | |
Denys Vlasenko | 95f7953f2c4 | do not use `a' quoting style in comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 18e781dc02c | config: do not use `a' quoting in help texts
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ec05df13b0f | ash: align --login code with dash
Upstream commit:
Date: Sun, 13 Jul 2008 22:34:50 +0800
[OPTIONS] Added su... | | |
Denys Vlasenko | 78b1b1b07ac | test: fix 4-argument case
Upstream dash commit:
Date: Sun, 13 Jul 2008 19:20:10 +0800
Fixed 3,4-argument ca... | | |
Denys Vlasenko | cee603d9215 | hush: remove redundant "G_flag_return_in_progress = -1"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 5b3d2eb327c | hush: fix "true | func_with_return" not allowing return.
function old ... | | |
Denys Vlasenko | d0fff9155bc | ash: fix display of ">&-" redirect in job strings
function old new ... | | |
Denys Vlasenko | 75481d36345 | hush: functions have priority over builtins (!)
function old new d... | | |
Denys Vlasenko | bf1c344dfdc | hush: if STANDALONE, close interactive fd for NOEXECed children
function ... | | |
Denys Vlasenko | 32fdf2f9fc9 | ash,hush: ">&10" redirects to script/tty fds should not work
The fact that shell has open fds to tty and/or scripts ... | | |
Next → |