aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Apply post-1.18.3 fixes, bump version to 1.18.41_18_4Denys Vlasenko2011-03-131-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Apply post-1.18.2 fixes, bump version to 1.18.31_18_3Denys Vlasenko2011-02-081-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date :add a comment about older toolchainsDenys Vlasenko2010-11-231-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix -lg to show group (was showing user)Denys Vlasenko2010-11-061-3/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* stat: fix mtime/ctime/atimeEric Lammerts2010-10-301-4/+3
| | | | | | | | If you set CONFIG_FEATURE_STAT_FORMAT=n, two of the three printed times are wrong, because a global buffer is reused. Fix below. Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-299-20/+20
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: whitespace fixesDenys Vlasenko2010-10-2810-31/+31
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use common crc32 routineDenys Vlasenko2010-10-271-6/+1
| | | | | | | | | | | | | | | | | | function old new delta crc32_block_endian1 - 37 +37 crc32_block_endian0 - 34 +34 global_crc32_table - 8 +8 file_read 82 87 +5 gzip_main 211 214 +3 xz_crc32 40 35 -5 crc32_table 8 - -8 calculate_gunzip_crc 54 34 -20 lzo_crc32 54 25 -29 cksum_main 298 211 -87 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/4 up/down: 87/-149) Total: -62 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* mv: implement -n optionDenys Vlasenko2010-10-261-13/+33
| | | | | | | | | function old new delta mv_longopts 23 36 +13 mv_main 510 520 +10 packed_usage 27218 27225 +7 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* md5/sha1sum: code shrinkDenys Vlasenko2010-10-241-20/+21
| | | | | | | function old new delta hash_file 357 279 -78 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use strcpy_and_process_escape_sequencesDenys Vlasenko2010-10-231-10/+8
| | | | | | | | | | | | function old new delta strcpy_and_process_escape_sequences - 50 +50 bb_process_escape_sequence 148 138 -10 printf_main 789 776 -13 getty_main 1897 1831 -66 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 50/-89) Total: -39 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use xmkstemp. -65 bytes.Alexander Shishkin2010-10-221-5/+3
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* tail: free tailbuf upon cleaning upAlexander Shishkin2010-10-211-0/+1
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stat: remove superfluous setXXent() calls, plug memory leakAlexander Shishkin2010-10-211-7/+5
| | | | | | | | function old new delta print_stat 875 865 -10 Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: s/open3_or_warn/open_or_warn/ where makes senseDenys Vlasenko2010-10-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* sort: -o FILE should create/truncate FILEDenys Vlasenko2010-10-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: replace xopen3 with xopen where makes senseDenys Vlasenko2010-10-182-3/+3
| | | | | | | | | | function old new delta uniq_main 421 416 -5 sort_main 803 798 -5 patch_main 2051 2046 -5 cpio_main 547 542 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2010-10-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* seq: exit on write errorsDenys Vlasenko2010-10-171-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: pass md5/shaN context pointer as 1st arg, not lastDenys Vlasenko2010-10-161-3/+3
| | | | | | | | | function old new delta md5_hash_block 458 459 +1 filter_rename_config 252 250 -2 md5_crypt 591 587 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: move applet and usage bits to date.cDenys Vlasenko2010-10-151-32/+74
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* wc: add support for -mDenys Vlasenko2010-10-041-13/+45
| | | | | | | | function old new delta wc_main 601 637 +36 packed_usage 27357 27358 +1 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* wc: preparatory patch, no logic changesDenys Vlasenko2010-10-041-15/+16
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Marked some more applets NOEXEC/NOFORKDan Fandrich2010-10-019-0/+18
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fix. no code chagesDenys Vlasenko2010-09-251-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sleep: fix fractional arguments in non-POSIX localeDenys Vlasenko2010-09-241-7/+11
| | | | | | | function old new delta sleep_main 390 379 -11 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* libbb: merge mail and uudecode's base64 decodersDenys Vlasenko2010-09-161-69/+4
| | | | | | | | | | | | | | | function old new delta read_base64 - 378 +378 uudecode_main 306 315 +9 parse 953 958 +5 read_stduu 250 254 +4 base64_main 217 219 +2 read_base64 358 - -358 decode_base64 371 - -371 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 4/0 up/down: 398/-729) Total: -331 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* sleep: make it non-NOFORK. Fixes ^C in standalone shellDenys Vlasenko2010-09-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Avoid side effects in putc(), which may be implemented as a macroDan Fandrich2010-09-092-5/+6
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* uudecode,base64: code shrinkDenys Vlasenko2010-09-011-27/+26
| | | | | | | function old new delta read_base64 373 358 -15 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* base64: new appletDenys Vlasenko2010-08-312-6/+76
| | | | | | | | | | | | | | | | function old new delta base64_main - 217 +217 packed_usage 27181 27229 +48 read_base64 348 373 +25 applet_names 2299 2306 +7 bbconfig_config_bz2 4942 4948 +6 applet_main 1352 1356 +4 applet_nameofs 676 678 +2 applet_install_loc 169 170 +1 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/0 up/down: 310/0) Total: 310 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* nandwrite: complain on malformed -s NUMDenys Vlasenko2010-08-291-2/+2
| | | | | | Elsewhere: use common error message. -30 bytes net size change Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* split: use xopen_stdin()Denys Vlasenko2010-08-231-3/+1
| | | | | | | function old new delta split_main 558 543 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-1677-83/+82
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: fix "see file License ..." - the file is named LICENSE (in uppercase)Denys Vlasenko2010-08-162-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_iDenys Vlasenko2010-08-122-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: sort out preprocessor conditionalsJeremie Koenig2010-08-012-126/+214
| | | | | | | | | | * Move the definitions of missing constants to the top of the file. * Fix undefined IDX_xxx on missing termios constants. * FreeBSD has TABDLY, TAB0 and TAB3, but no TAB1 or TAB2 * Omit the definition of set_window_size() if TIOCGWINSZ is not available. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass cosmetic removal of extra empty lines. no code changesDenys Vlasenko2010-07-263-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mark Linux-specific configuration optionsJeremie Koenig2010-07-192-1/+3
| | | | | | | | PLATFORM_LINUX is used as a dependency for applets or features which require Linux-specific interfaces. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* readlink: use xmalloc_realpath()Jeremie Koenig2010-07-191-3/+2
| | | | | | | | | | | Using realpath() directly with a non-NULL output buffer is unsafe because its behavior is unspecified on systems which don't have PATH_MAX (ie. Hurd) I beleive this also fixes a small bug whereby 'buf' would not be freed on 'readlink -v' with ENABLE_FEATURE_CLEANUP. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dos2unix: fix the case w/o parametersDenys Vlasenko2010-07-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2010-07-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use BB_EXECVP_or_die()Pascal Bellard2010-07-044-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta BB_EXECVP_or_die - 47 +47 time_main 1042 1043 +1 chrt_main 371 364 -7 ionice_main 292 282 -10 setsid_main 69 56 -13 nohup_main 236 223 -13 cttyhack_main 266 253 -13 chroot_main 94 81 -13 chpst_main 746 733 -13 timeout_main 297 279 -18 taskset_main 541 522 -19 vfork_child 67 45 -22 parse 975 953 -22 lpd_main 770 748 -22 launch_helper 192 170 -22 tcpudpsvd_main 1810 1782 -28 nice_main 190 156 -34 env_main 242 206 -36 run_command 221 174 -47 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/17 up/down: 48/-352) Total: -304 bytes Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make exec failure message more consistentDenys Vlasenko2010-06-254-10/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: make %N work without -lrt on glibcDenys Vlasenko2010-06-181-1/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stat: make output more similar to GNU statSeb2010-06-121-20/+21
| | | | | Signed-off-by: Seb <sbb@tuxfamily.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: trivial fix - was reading seconds into nanoseconds field! DOHDenys Vlasenko2010-06-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add INSERTs to *.src files where appropriateDenys Vlasenko2010-06-082-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: use the same code for FEATURE_DATE_NANO for glibc and uclibcDenys Vlasenko2010-06-081-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bbconfig: make it independent from printf functionsDenys Vlasenko2010-06-071-7/+5
| | | | | | | | | | | | | | function old new delta full_write2_str - 25 +25 full_write1_str - 25 +25 clear_main 21 20 -1 telnet_main 1488 1477 -11 getty_main 1932 1918 -14 full_write22_str 25 - -25 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/3 up/down: 50/-51) Total: -1 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>