bfc0fae952
enable most job functions on no-mmu systems
Mike Frysinger
2009-03-26 18:14:16 +00:00
f9beb61a81
tftp: when we infer local name from remote (-r [/]path/path/file), strip path. This mimics wget and is generally more intuitive.
Denis Vlasenko
2009-03-25 03:55:53 +00:00
b2705e1652
do not make startup banner depend on job support
Mike Frysinger
2009-03-23 08:44:02 +00:00
c0ea82a457
libbb: revent previous version of "concurrent history updating" and replace it with one which does not "snoop" history written by others. (1) it is what bug 185 needs, and (2) it is less bloaty:
Denis Vlasenko
2009-03-23 06:33:37 +00:00
ddbee974b4
move parse_stream out of ENABLE_HUSH_TICK to avoid implicit decl/build error
Mike Frysinger
2009-03-22 22:48:41 +00:00
57abf9e947
libbb: make history saving/loading concurrent-safe * all history writers always append (not overwrite) history files * they reload history if they detect that file length has changed since last write * they trim history file only when it grows 4 times longer than MAXLINES * they do this atomically by creating new file and renaming it to old
Denis Vlasenko
2009-03-22 19:00:05 +00:00
3fd1046300
timeout: fix parsing of -t NUM on MMU
Denis Vlasenko
2009-03-22 14:49:00 +00:00
424f79b48f
hush: rearrange functions to reduce amount of forward references. Minimal code changes.
Denis Vlasenko
2009-03-22 14:23:34 +00:00
e1300f6fc7
hush: fix segv at repeated "set -- a b c" + "shift"
Denis Vlasenko
2009-03-22 11:41:18 +00:00
3a014b85dc
ls: make readlink error to not disrupt output (try ls -l /proc/self/fd). libbb: make xmalloc_readlink_or_warn warning more specific.
Denis Vlasenko
2009-03-21 19:11:23 +00:00
05af832097
cpio: more compat: -0 and -L options
Denis Vlasenko
2009-03-20 23:01:48 +00:00
653d8e79b2
ash: make evaltree save/restore int suppression depth. Hopefully this fixes bug 189. Not confirmed by users yet.
Denis Vlasenko
2009-03-19 21:59:35 +00:00
4b875708c1
ash: in dotrap(), do not clear gotsig[] for SIGINT if there is no handler for it, otherwise raise interrupt gets confused later. The rest are readability fixes.
Denis Vlasenko
2009-03-19 13:30:04 +00:00
5981ba5843
init: test for vt terminal with VT_OPENQRY, assume that anything else is TERM=vt102, not TERM=linux. (Serial console test is less correct) Tentatively closes bug 195.
Denis Vlasenko
2009-03-19 02:35:44 +00:00
5c2b81470d
ash: fix "ash -c 'exec 1>&0'" complaining that fd 0 is busy
Denis Vlasenko
2009-03-19 01:59:59 +00:00
c1969f69b1
ls: make color-related code more readable. Fix a case when it was working non-deterministically.
Denis Vlasenko
2009-03-18 22:39:34 +00:00
cbb4e61dd5
httpd: add comment explaining why SERVER_NAME etc is not set.
Denis Vlasenko
2009-03-18 20:00:46 +00:00
9f57cf6604
ftpd: fix command fetching to not do it in 1-byte reads; fix command de-escaping. Tested to download files with embeeded \xff and LF. libbb: tweaks for the above
Denis Vlasenko
2009-03-18 17:32:44 +00:00
fce4a9454c
ftpd: add some comments
Denis Vlasenko
2009-03-18 16:02:54 +00:00
e3b840ce98
ftpd: trim messages (but make sure they still make sense) text data bss dec hex filename 4400 0 0 4400 1130 ftpd_old.o 4346 0 0 4346 10fa ftpd.o
Denis Vlasenko
2009-03-18 14:25:28 +00:00
5b492ee876
ftpd: do not use nasty tricks for re-execing if we are on MMU machine. On NOMMU, code is alomost the same, on MMU:
Denis Vlasenko
2009-03-18 14:12:22 +00:00
1432cb4bd9
ftpd: add support for MDTM, I see clients often use it, it may allow client-side caching.
Denis Vlasenko
2009-03-18 00:45:00 +00:00
3a7a1eba2e
ftpd: document NLST format
Denis Vlasenko
2009-03-17 13:03:06 +00:00
1a82555108
ftpd: instead of wordy HELP, implement useful, and smaller, FEAT. (HELP is still "supported" as an alias to FEAT)
Denis Vlasenko
2009-03-17 12:40:34 +00:00
99d71da1cf
chat: update by Vladimir 1) to treat timeout more correctly (timeout affects whole send command duration, not a single char); 2) to recognize RECORD directive.
Denis Vlasenko
2009-03-16 23:06:23 +00:00
074c9036b2
ftpd: fix thinko: set_nport takes port in network order
Denis Vlasenko
2009-03-16 21:01:41 +00:00
fbf5846ce1
ftpd: dont use fdprintf for simple status messages
Denis Vlasenko
2009-03-16 20:54:45 +00:00
43bb7bba3b
ftpd: simplify PORT check by assuming IP = peer's IP. Should be as safe as before this change.
Denis Vlasenko
2009-03-16 19:54:06 +00:00
20c8216897
ftpd: add idle and absolute timeouts. This is a security issue, otherwise ftpd may end up hanging indefinitely.
Denis Vlasenko
2009-03-16 16:19:53 +00:00
f2160b6a09
ftpd: security tightened up: PORT is not allowed on !IPv4 PORT must have IP == peer's IP upload is allowed only into regular files
Denis Vlasenko
2009-03-16 14:53:54 +00:00
7a6766428e
awk: fix compat issue found by gpm build
Denis Vlasenko
2009-03-15 22:20:31 +00:00
9210a36495
tr: support -C as synonym to -c
Denis Vlasenko
2009-03-15 16:41:55 +00:00
fc58ba1298
ftpd: fix the bug where >2GB file ops report errors; make a few simplifications; add TODOs.
Denis Vlasenko
2009-03-15 15:54:58 +00:00
823f10b8f0
sha: merge K[] for sha256 and 512
Denis Vlasenko
2009-03-15 04:56:51 +00:00
8ec8d5e3db
sha: fix thinko in sha512; add FAST_FUNC to sha1/sha256
Denis Vlasenko
2009-03-15 02:56:00 +00:00
e9afc468fa
sha: merge sha1/sha256 handling (they are similar enough for this), shrink sha215 code
Denis Vlasenko
2009-03-15 02:28:05 +00:00
cd2cd312b7
shrink sha hashing a bit more (remove wbuflen field from ctx), remove the requirement for aligned buffer
Denis Vlasenko
2009-03-12 15:40:27 +00:00
4221e90ae4
ftpd: stop unconditional logging to syslog. This was the only applet which was doing it. Added option -S to enable it when desired.
Denis Vlasenko
2009-03-11 15:07:44 +00:00
a19e64933c
docs/logging_and_backgrounding.txt: new mini-doc dnsd: remove statics, remove nerly-useless SIGINT handler crond: correct more of logfile to 0666 (as usual, umask allows user to remove unwanted bits). nameif: print errors to stderr too, not just to syslog
Denis Vlasenko
2009-03-11 14:40:00 +00:00
4774179cb9
mail.c: more robust handling of SIGCHLD init: more robust signal handling
Denis Vlasenko
2009-03-10 16:01:57 +00:00
1a6adbd71b
uniq: strncmp(a,b, -1) might be problematic, use INT_MAX instead
Denis Vlasenko
2009-03-09 16:43:28 +00:00
9257671c76
fix typo in help text
Denis Vlasenko
2009-03-09 16:25:33 +00:00
c41cba5a57
ftpd: reuse ls applet for LIST/NLST/STAT generation
Denis Vlasenko
2009-03-09 15:46:07 +00:00
9b2fbda538
ftpd: EPSV and SIZE support. Tested to work on IPv6 too. libbb: str2sockaddr shuld accept [IPv6] addr without port - wget 'ftp://[::1]/file' needs that to work.
Denis Vlasenko
2009-03-09 13:01:08 +00:00
57a3b17498
ftp: reduce amount of realloc's done in cmdio_write
Denis Vlasenko
2009-03-09 04:38:37 +00:00