Denys Vlasenko | b6afcc78194 | shell: suppress "unused var/func" warnings on some configs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 4f13a705078 | suppress glibc "use sysmacros.h for major" warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | df25df784f2 | randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | de912f0153c | randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 52ae0980112 | randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ac5d324540c | randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Mike Frysinger | c6f35241b38 | selinux: drop deprecated headers
The selinux guys want you to get class values at runtime by converting
textual name... | | |
Mike Frysinger | 1cda8790803 | setfiles: fix build failure after common_bufsiz change
Commit 47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 ("*: add most... | | |
Mike Frysinger | 2098c3511cf | mdev.conf: rename hw_random to hwrng
The kernel broke the name years ago, but didn't notice until it was much
too la... | | |
Denys Vlasenko | 548620c18b1 | randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 4051a99f5fe | svc: new applet (daemontools-compatible version of "sv")
function old ... | | |
Denys Vlasenko | 4bd0c2ab38a | fix musl problem with dirname, now for all users of bb_make_directory()
function ... | | |
Denys Vlasenko | fdb4421e00c | README_distro_proposal.txt: writeup about runit adoption
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 718e4fd564f | top: fix help text: with !TERMIOS, no keys are affected top output
Signed-off-by: Denys Vlasenko <vda.linux@googlema... | | |
Denys Vlasenko | cf2600c3661 | install: fix musl problem with dirname
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 7d877fc9312 | Do not print useless empty line after list of applets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 1d3a04a3a4b | Code style fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 038a977d47c | lineedit: simplify code a bit
function old new delta
lineedit_read... | | |
Denys Vlasenko | 2c769c69b26 | makedevs: make special node creation idempotent
When makedevs is called for a second time with the same device file,... | | |
Denys Vlasenko | bff71d3b9d4 | lineedit: fix two bugs in SIGWINCH signal handling
(1) restore entire sigaction, not only signal handler function
(2... | | |
Denys Vlasenko | 710b6ce9b0d | fdisk_gpt: simplify GPT partition name printing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 29516ac0e41 | fdisk: sanitize partition name printing; drop "Code" column; get rid of one static var
function ... | | |
Denys Vlasenko | 351ab8278e9 | dpkg-deb: shorten code, improve help text
function old new delta
p... | | |
Denys Vlasenko | 6747bdac88d | dpkg-deb: remove unused FEATURE_DPKG_DEB_EXTRACT_ONLY config option
Its usage in C code was removed in 2004.
Signed... | | |
Denys Vlasenko | ccc9985c455 | find: fix handling of trailing slashes in -name PATTERN comparisons
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | 4b89d512b12 | ash,hush: make ^C in interactive mode visually much closer to bash behavior
Signed-off-by: Denys Vlasenko <vda.linux... | | |
Denys Vlasenko | 24860fa09cf | Move FEATURE_BUFFERS_USE_foo options to library tuning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 1255925a612 | Move locale, unicode, and "use sendfile?" options to library tuning
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | 336022663a5 | Collapse three levers of menuconfig to two levels.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 8660aeb3127 | ash,hush: ^C from command line should set $? to 128+SIGINT
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Rostislav Skudnov | 2e4ef38743c | lineedit: fix handling of repeating Alt-b, Alt-f, Alt-d, Alt-Backspace
These key combinations should repeat correctl... | | |
Aaro Koskinen | cb810c48c03 | patch: fix matching failure
Fix matching failure when plist is advanced while checking for buffered
lines - the line... | | |
Aaro Koskinen | 2eff59667d3 | patch: fix debug log failure
If we reach the end of plist it means the input has still data while we
are expecting E... | | |
Denys Vlasenko | 5bbee27c0fc | Remove outdated comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | f7683cdf83f | Convert all udhcp applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | a8e52da7742 | Convert all selinux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.... | | |
Denys Vlasenko | 15fb91cefb2 | test: make [ and [[ forms individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 73f743a381d | Remove remnants of disabled "length" applet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 7caf1369f5a | Make dos2unix/unix2dos independently selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | af3f4201162 | Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemai... | | |
Denys Vlasenko | 5b966c6180c | Make "hd" independently selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | dd898c9f338 | Convert all util-linux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlema... | | |
Denys Vlasenko | e5dd71f94f8 | Remove trailing empty lines
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 6d9329935c0 | Convert all console-tools/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googl... | | |
Denys Vlasenko | c19f7584e14 | Convert all mailutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemai... | | |
Denys Vlasenko | 29e2c45a5b3 | tc: consolidate its disabled bits
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 83423978014 | Make ping6 and traceroute6 selectable independently from ping/traceroute
Signed-off-by: Denys Vlasenko <vda.linux@go... | | |
Denys Vlasenko | 6bfab0c49f4 | ipneigh: add this shortcur similar to other "ip <CMD>" shortcuts
Signed-off-by: Denys Vlasenko <vda.linux@googlemail... | | |
Denys Vlasenko | 3148e0c05be | Rename FEATURE_FTP_WRITE and FEATURE_FTP_AUTHENTICATION to *_FTPD_*
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | 47367e1d50b | Convert all networking/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlema... | | |
Denys Vlasenko | e32b64c4ec9 | Convert all modutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail... | | |
Denys Vlasenko | 5467d268f09 | Make killall and killall5 selecatable independent from kill
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | f8f81ed7aaf | Convert all procps/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | f88e3bfa8de | Convert all miscutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemai... | | |
Denys Vlasenko | fb4da167114 | Split miscutils/Config.src items into miscutils/*.c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 9f8eb1ee762 | httpd: explain why we use sprintf and why it should be fine
While at it, fix a pathological case where it is not fin... | | |
Denys Vlasenko | 7e8218f9b26 | Fix allnoconfig warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | f4d0f4e7a97 | applets.h.sh: a script to check applet names against config options
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | 10880cc20ff | Make mkfs.vfat and mkdosfs individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 0581a2f3041 | Make mke2fs and mkfs.ext2 individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | eb3fdc843e4 | Make bzcat, lzcat, xzcat, zcat, lzopcat, unlzop individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@goo... | | |
Denys Vlasenko | a8c696bf09d | Make ifup and ifdown individually selectable.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | f417ffd88f1 | Make swapon and swapoff individually selectable.
For example, without swapoff, code shrinks by 277 bytes.
Signed-of... | | |
Denys Vlasenko | 1924e99ad35 | Make grep/egrep/fgrep independently selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 97e9a72c71d | Make halt/poweroff/reboot independently selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | c314ca90165 | Make setarch/linux32/linux64 independently selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 67fd2f2858a | dnsdomainname: split it from "hostname", make it independently selectable
Signed-off-by: Denys Vlasenko <vda.linux@g... | | |
Denys Vlasenko | 9655f95d0f5 | tar: handle pax-encoded utf8 filenames and link names. Closes 9406
Signed-off-by: Denys Vlasenko <vda.linux@googlema... | | |
Denys Vlasenko | 87e039d0160 | hush: make getch/peek functions directly called
Indirect calls are more difficult to predict.
Unfortunately, on x64 ... | | |
Denys Vlasenko | 00a06b97153 | hush: renumber PIPE_foo, make PIPE_SEQ = 0
PIPE_SEQ is used most often, having it zero makes code smaller:
function... | | |
Denys Vlasenko | 6c635d62d41 | hush: small optimization in run_list
I thought gcc can detect this itself. It doesn't.
function ... | | |
Denys Vlasenko | 5cc9bf6a21a | hush: deindent large block of code, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 1eada9ad8d3 | hush: simplify insert_bg_jobs
function old new delta
insert_bg_job... | | |
Denys Vlasenko | 830ea35484c | hush: make "wait %1" less likely to play with signal mask
Was playing with "sleep 3 | exit 3 & wait %1" and noticed ... | | |
Denys Vlasenko | 02affb4afd4 | hush: rework "wait %jobspec" to work in non-interactive shells too
Also add tests. wait5.tests so far fails (but wor... | | |
Denys Vlasenko | 26ad94bedcc | hush: "wait $!; echo $?" should return 127 if $! already exited
It would be nice to provide bash-like "remember las ... | | |
Denys Vlasenko | 62b717b75eb | hush: implement "wait %jobspec"
function old new delta
parse_jobsp... | | |
Denys Vlasenko | 4e1c8b4f6a5 | hush: factor out %jobspec parsing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 5d5a611df2c | hush: comment fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 4224647c8d0 | hush: do not allow sh -c '{ echo boo }'
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Aaro Koskinen | 46443a383cd | cpio: add ownership (-R) test cases
Add ownership (-R) test cases.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.... | | |
Denys Vlasenko | aeaee43d5a4 | hush: case logic for setting $? was still wrong
Resetting to 0 should happen in "esac". Matched branch must
still se... | | |
Denys Vlasenko | 30bfcf612b0 | hush: non-matching "case" statement sets $? to 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 672a55e606f | hush: allow { cmd } to not be terminated by semicolon in some cases
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | 06b114900fc | ash: fix "duplicate local" code (forgot to re-enable interrupts)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail... | | |
Denys Vlasenko | 834aba3b72c | comment and readme updates
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 79e2598c48a | su: expand help; simplify passing of -c CMD to run_shell()
Also, added a comment about bug 9401 (TIOCSTI input injec... | | |
Denys Vlasenko | 2b288236e80 | loadfont: 32k size limit is not enough
Since our "read to malloced buf" routines only gradually grow
allocations, le... | | |
Denys Vlasenko | 1ab7c2fc6da | ash: while (!got_sig) pause() is not reliable, use sigsuspend()
dash was doing it for a reason. Unfortunately, it ha... | | |
Denys Vlasenko | 2e6af549715 | man: remove -Tascii from nroff invocation
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 7c3c92c533b | man: make width selection more thorough; explain how to override it
Fedora's "man CMD >file" still uses terminal wid... | | |
Denys Vlasenko | a92a74961d8 | man: allow nroff and tbl commands be overridden; unmangle writing to files
Parse this in config files:
DEFINE col ... | | |
Denys Vlasenko | d4f3db9427c | ash: if using libc glob(), skip it if no metachars are in word
This saves making tons of pointless stat() calls
fun... | | |
Denys Vlasenko | 474ed06c393 | ash: fix bit-rotten debug infrastructure
DEBUG = 2 output was a bit messed up
Signed-off-by: Denys Vlasenko <vda.li... | | |
Denys Vlasenko | 493b9cae808 | ash: make popfile() anfter popallfiles() safe
In this example:
ash -c 'readonly x; echo $(command eval x=2)'
eval... | | |
Denys Vlasenko | 9db74e49e5b | hush: fix "(sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?"
"wait $!" may be just a bit too late: backgrounde... | | |
Denys Vlasenko | 7e6753609d1 | hush: fix "wait PID"
It was not properly interruptible, and did not update job status
(the exited processes were sti... | | |
Denys Vlasenko | 8f7b0248adc | ash: use pause(), not sigsuspend(), in wait builtin
Same effect, smaller code
function ... | | |
Denys Vlasenko | d81e9f5093b | ash: fix interactive "command eval STRING" exiting on errors.
This bug is also present in current dash
Signed-off-b... | | |
Denys Vlasenko | 458c1f218bb | ash: [JOBS] Fix dowait signal race
Upstream commit:
Date: Sun, 22 Feb 2009 18:10:01 +0800
[JOBS] Fix dowait... | | |
Denys Vlasenko | c0663c7cd21 | ash: [SIGNAL] Remove EXSIG
Upstream commit 1:
Date: Sun, 22 Feb 2009 18:16:13 +0800
[SIGNAL] Remove EXSIG
... | | |
Denys Vlasenko | 69188110146 | ash: open-code blocking_dowait_with_raise_on_sig()
There is in fact only one callsite.
Signed-off-by: Denys Vlasenk... | | |
Denys Vlasenko | b543bdadb30 | ash: return to DOWAIT_* constants similar to dash, no logic changes
This loses an insignificant optimization, but ma... | | |
Denys Vlasenko | 3f44a6be588 | ash: delete leftovers from "simplify EOF/newline handling in list parser" commit
This commit should have deleted the... | | |
Denys Vlasenko | 5ac04f2f022 | ash: [EXPAND] Fix ifsfirst/ifslastp leak
Upstream commit:
Date: Wed, 8 Sep 2010 20:07:26 +0800
[EXPAND] Fix... | | |
Denys Vlasenko | 455e4228141 | ash: move ifsbreakup() and ifsfree() up
Preparatory patch.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | b4f51d32d28 | ash: partially sync with dash on "fork if traps are set" logic
Upstream commit "[EVAL] Force fork if any trap is set... | | |
Denys Vlasenko | 2eb0a7e1b9a | ash: [SHELL] Expand ENV before using it
Upstream commit:
Date: Sun, 13 Jul 2008 21:51:52 +0800
[SHELL] Expa... | | |
Denys Vlasenko | 70392331a98 | ash: comment tweaks, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 65a8b859a9a | ash: optimize tryexec(): avoid one allocation
There was a bug in tryexec which bbox had fixed in 2003.
dash had a sm... | | |
Denys Vlasenko | 0e081d01a8a | ash: [CD] Lookup PWD after going through CDPATH
Upstream commit:
Date: Mon, 31 Aug 2009 22:06:41 +1000
[CD]... | | |
Denys Vlasenko | a318bba199a | ash: [MEMALLOC] Made grabstackblock an inline wrapper for stalloc
Upstream patch:
Date: Fri, 5 Oct 2007 23:26:4... | | |
Denys Vlasenko | dbef38a74b8 | ash: [VAR] Remove setvarsafe
Upstream commit:
Date: Sat, 6 Oct 2007 21:18:58 +0800
[VAR] Remove setvarsafe
... | | |
Denys Vlasenko | 35c2a136cd7 | ash: use shellparam.optind/optoff in getopts() directly, not through pointers
This is a preparatory patch for next c... | | |
Denys Vlasenko | 3df1410a00a | ash: [PARSER] Size optimisations in parameter expansion parser
Upstream commit:
Date: Thu, 4 Oct 2007 22:20:38 ... | | |
Denys Vlasenko | 350e686f3b0 | ash: [PARSER] Recognise here-doc delimiters terminated by EOF
Upstream commit 1:
Date: Wed, 26 Sep 2007 17:14:1... | | |
Denys Vlasenko | f15aa57a7f5 | ash: [PARSER] Fix parsing of ${##1}
Upstream commit:
Date: Thu, 4 Oct 2007 22:15:10 +0800
[PARSER] Fix pars... | | |
Denys Vlasenko | e19923f6652 | ash: [REDIR] Remove redundant CLOEXEC calls
Upstream commit:
Date: Sun, 6 May 2007 19:28:56 +1000
[REDIR] R... | | |
Denys Vlasenko | 647746076a2 | ash: [REDIR] Replace copyfd by savefd and use dup2 elsewhere
Upstream commit:
Date: Sat, 12 May 2007 18:00:57 +... | | |
Denys Vlasenko | 4135a75ab05 | typo fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | a513bf3c3ce | ash: [BUILTIN] Treat OPTIND=0 in the same way as OPTIND=1
Upstream commit:
Date: Sat, 6 Oct 2007 18:59:31 +0800... | | |
Denys Vlasenko | 88e15703acd | ash: [PARSER] Report substition errors at expansion time
Upstreams commit:
Date: Mon, 8 Oct 2007 21:32:25 +0800... | | |
Denys Vlasenko | eaf9436b08f | ash: [REDIR] Move null redirect checks into caller
Upstream commit:
Date: Thu, 27 May 2010 14:21:17 +0800
[... | | |
Denys Vlasenko | 2a6d29ad5ce | ash: [PARSER] Do not show prompts in expandstr
Upstream patch:
Date: Thu, 27 Dec 2007 13:57:07 +1100
[PARSE... | | |
Denys Vlasenko | 579ad107a69 | ash: [EXPAND] Removed herefd hack
Upstream commit:
Date: Sun, 11 Nov 2007 15:00:06 +0800
[EXPAND] Removed h... | | |
Denys Vlasenko | caee80cd3da | ash: [SHELL] Move flushall to the point just before _exit
Upstream commit:
We need to flush at the very end in ... | | |
Denys Vlasenko | 7aec86820d7 | ash: [EVAL] Let funcnode refer to a function definition, not its first command
Upstream patch:
Date: Tue, 15 Ma... | | |
Denys Vlasenko | 20a2cd62919 | ash: [REDIR] Remove EMFILE special case
Upstream commit:
Date: Sun, 6 May 2007 12:01:37 +1000
[REDIR] Remov... | | |
Denys Vlasenko | cf98b0c0857 | ash: [EVAL] Check exit for eval NSUBSHELL
Upstream commit:
Date: Tue, 6 Jul 2010 17:50:37 +0800
[PATCH 161/... | | |
Denys Vlasenko | 960ca385b72 | ash: add comment explaining "set -e; $(cmd)" discrepancy
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 6a94cee409e | ash: reduce code differences from upstream
Upstream commit:
Date: Wed, 8 Sep 2010 16:21:52 +0800
[JOBS] Deb... | | |
Denys Vlasenko | 1825e4f935f | ash: remove unused EXSHELLPROC
Upstream commit:
Date: Sun, 28 Nov 2010 20:47:07 +0800
[BUILTIN] Stop docume... | | |
Denys Vlasenko | 061a09091f2 | ash: [BUILTIN] Use EXEXIT in place of EXEXEC
Upstream commit:
Date: Sun, 28 Nov 2010 20:44:37 +0800
[BUILTI... | | |
Denys Vlasenko | b7adf7ac32e | ash,hush: set exit code 127 in "sh /does/not/exist" case
Upstream commit 1 for ash:
[ERROR] Allow the originato... | | |
Denys Vlasenko | f11c6989ba4 | udhcpc: check read of overload option data byte to be within packet
function ... | | |
Brian Foley | f9beeb22e2a | udhcpc: check read of option length byte to be within packet
function ol... | | |
Tito Ragusa | 69312e87b00 | strings: implement -t radix
v2: minor code cleanup, no changes.
v1: Implement -t radix option.
Fix help text for... | | |
Denys Vlasenko | db74c6caedf | ash: explain EXP_REDIR and why we (dont) glob redir filenames
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Brian Foley | 61d5997b586 | awk: fix segfault on for loop syntax error
Parsing "for()" segfaults as awk fails to find loop iteration expressions... | | |
Denys Vlasenko | 1336052a490 | lineedit: fix completion with applet names. closes 9361
Patch by Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys V... | | |
Ron Yorston | 5ccb0e92faf | ash: return exit status of nofork applets
The commit 'ash: eval: Return status in eval functions' changed how
exit s... | | |
Denys Vlasenko | 6bbb48fadf2 | examples: update var_service/README again
Added "ps -AH e" example
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | e43000f2d46 | typo fixes in doc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 93ff2b4b5fb | examples: update var_service/README again
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ee2d19445bf | examples: update var_service/README
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 662634b8290 | telnetd: ifdef out a buggy error handling code path
Here, not handling the error is would just eat one input 0xff ch... | | |
Denys Vlasenko | 85100a7067a | cpio: fix restoration of file ownership, closes 9306
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 57727d478db | telnet: code shrink
put_iac2(w,c) is mostly used with constants, fold them into one arg
function ... | | |
Denys Vlasenko | 26d88d6bbda | telnetd: add another handshake example in comments, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | b6d421b6356 | telnetd: treat all 2-byte IACs in 240..249 range as NOPs.
A bit of future-proofing. Some of them can stand just bein... | | |
Denys Vlasenko | 122c47ac02e | telnetd: fix corner case of input processing of 0xff bytes
I managed to reproduce the bug, with some difficulty.
fu... | | |
Denys Vlasenko | 0190c41bb29 | telnetd: fix a corner case where CRLF->CR translation can misbehave
Signed-off-by: Denys Vlasenko <vda.linux@googlem... | | |
Denys Vlasenko | 2a54b3e86eb | telnetd: fix handling of short writes to pty
If a write to pty is short, remove_iacs() can be run on a buffer repeat... | | |
Denys Vlasenko | 713b5133534 | more: accept and ignore a bunch of options
Alpine Linux stumbled over "more -s":
http://bugs.alpinelinux.org/issues/... | | |
Denys Vlasenko | 3720a61daf2 | ifupdown: rewrite state file atomically
By user's request.
Decided to not use fcntl(F_SETLKW) in lieu of problems wi... | | |
Denys Vlasenko | 868530ade24 | Apply post-1.25.0 patches, bump version to 1.25.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ec1ea163376 | tcpsvd: don't keep shared fd open if fd limit is reached. closes 9331
Also, much improved help text.
function ... | | |
Denys Vlasenko | 561639a68c6 | ash: all blocks in function node copying must be SHELL_ALIGNed
Previous commit probably introduced a bug:
non-matchi... | | |
Denys Vlasenko | d43be875910 | ash testsuite: fix false positives
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 4c438b5ba4a | ash: get rid of two global data variables
function old new delta
c... | | |
Denys Vlasenko | f37e1155aab | ash: comment out free(p) just before _exit, tweak some outdated comments
Planned to sync exitshell up to dash, turne... | | |
Denys Vlasenko | 2972e2c4acb | wget: there is no -s option in GNU Wget 1.18, we should be compatible
Signed-off-by: Denys Vlasenko <vda.linux@googl... | | |
Denys Vlasenko | a85740c8afe | dhcp: merge leases.c and static_leases.c into dhcpd.c
function old n... | | |
Denys Vlasenko | d2ae66cb3e5 | dhcp: merge most of static_leases.c into dhcpd.c
function old new ... | | |
Denys Vlasenko | 2bf2931d526 | dhcp: merge files.c into dhcpd.c
Added NOINLINE to two function, since my version of gcc would actualy increase
code... | | |
Denys Vlasenko | 095ddf7669a | examples: add example of a DHCP server
As usual, by multiplying directories - "dhcpd_eth0", "dhcpd_wlan1"
you can ru... | | |
Denys Vlasenko | 7f0ebbc69ed | hush: add commented-out debug printouts in "memleak" built-in
Allocation addresses of malloc() are jittery,
thought ... | | |
Denys Vlasenko | a769390da60 | hush: fix a memory corruption when exported variable is modified
The construct such as this:
t=1
export t
t=new_val... | | |
Denys Vlasenko | 04465dad664 | hush: fix exitcode on exec failure with EACCES - should be 126
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | c775f829db2 | sh testsuite: add tests for exitcode on failure to exec
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 2feaa227a4d | shell: delete all msh tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 9793fc576af | hush testsuite: fix another false positive
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | d3b4e5ec6a7 | hust testsuite: fix a false positive
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | a62bc80571e | ash testsuite: add most of hust tests which pass for ash
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ce332a23a3f | ash: [PARSER] Add nlprompt/nlnoprompt helpers
Upstream commit:
Date: Mon, 29 Sep 2014 22:53:53 +0800
[PARSE... | | |
Denys Vlasenko | 80729a4472e | whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | db7f4c203b6 | hush: add var4.tests, var5.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 61508d96247 | hush: fix var3.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | ebedb9478d0 | sh: do not print empty line at the end of "help" output
It's pointless.
Signed-off-by: Denys Vlasenko <vda.linux@go... | | |
Denys Vlasenko | df303ae1173 | sh testsuite: sync ash-redir/ and hush-redir/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | c7a774dde4b | sh testsuite: sync ash-misc/source* and hush-misc/source*
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 0ba99705a11 | sh testsuite: sync ash-vars/ and hush-vars/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | e3354bc44aa | ash testsuite: update some of variable tests with newer versions from hush
Signed-off-by: Denys Vlasenko <vda.linux@... | | |
Denys Vlasenko | c4cf542c575 | sh testsuite: create hush-redir/* and move files around
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 1b73f8471a3 | sh testsuite: create hush-heredoc/* and move files around
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 5d6b8729ed7 | hush testsuite: add many tests from ash testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | | |
Denys Vlasenko | 888527cceec | ash: undo "tokname hack"
dash has tokendlist[] array to decide which tokens end lists.
We store it as first byte of ... | | |
Denys Vlasenko | bc1a00843fc | ash: placate gcc: "warning: ! is only applied to the left hand side of =="
Signed-off-by: Denys Vlasenko <vda.linux@... | | |
Next → |