aboutsummaryrefslogtreecommitdiff
path: root/coreutils
Commit message (Collapse)AuthorAgeFilesLines
* tweak help textGravatar Denys Vlasenko2012-06-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* android: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.cGravatar Tias Guns2012-06-101-0/+6
| | | | | | | | patch modified from 'BusyBox Patch V1.0 (Vitaly Greck)' https://code.google.com/p/busybox-android/downloads/detail?name=patch_busybox Signed-off-by: Tias Guns <tias@ulyssis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mv: accept but ignore -vGravatar Simon B2012-05-061-8/+11
| | | | | | | | function old new delta mv_longopts 36 46 +10 Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkdir,rmdir: accept and ignore -v, --verboseGravatar Simon B2012-05-062-4/+7
| | | | | | | | | function old new delta static.rmdir_longopts 38 48 +10 mkdir_longopts 18 28 +10 Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ln: support -T and -vGravatar Simon B2012-05-061-6/+22
| | | | | | | | | function old new delta ln_main 445 524 +79 packed_usage 29182 29179 -3 Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* who: fix typo in help textGravatar Denys Vlasenko2012-04-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* who,less: tweaked help textGravatar Denys Vlasenko2012-04-171-0/+1
| | | | | | | function old new delta packed_usage 29176 29173 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test: "test !" was accessing argv past NULL - fix it. Closes 4832Gravatar Denys Vlasenko2012-03-081-7/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make xchroot do a chdir("/") after chrootGravatar Denys Vlasenko2012-03-081-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printf: fix this case: printf "%b" '\0057usr\0057bin\n'Gravatar Denys Vlasenko2012-03-071-2/+17
| | | | | | | | | It was not accepting \0NNN. Standard printf tool does. function old new delta printf_main 869 886 +17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printf: trim help textGravatar Denys Vlasenko2012-03-071-4/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uudecode: tweak help textGravatar Denys Vlasenko2012-03-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uuencode: tweak help textGravatar Denys Vlasenko2012-03-051-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: trim help textGravatar Denys Vlasenko2012-03-051-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: trim help text a bit moreGravatar Denys Vlasenko2012-03-051-7/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: remove stray whitespace in help textGravatar Denys Vlasenko2012-03-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: extend help text to explain compat date format. Closes 4820Gravatar Denys Vlasenko2012-03-011-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: use long long for size fieldGravatar Ian Wienand2012-02-281-5/+5
| | | | | | | | | | | | | | | | du has issues with files reporting large block counts on 32-bit systems with 4 byte longs. From looking at the stat.c code, it seems the preference is to use 'long long', rather than blkcnt_t. function old new delta du 420 444 +24 du_main 317 321 +4 print 43 41 -2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 28/-2) Total: 26 bytes Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkdir: fix permissions on 64-bit platformsGravatar Timo Teras2012-02-231-3/+4
| | | | | | | | | sizeof(long) != sizeof(mode_t), this causes the compare in bb_make_directory of (long)-1 != (mode_t)-1 to fail and mess up the permissions of final directory by doing chmod((mode_t) -1). Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: remove is_directory's argument which is always NULLGravatar Denys Vlasenko2011-12-181-2/+2
| | | | | | | | | | | | function old new delta send_cgi_and_exit 892 890 -2 ln_main 447 445 -2 handle_incoming_and_exit 2784 2780 -4 is_directory 66 59 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 2/-19) Total: -15 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* touch: add new option FEATURE_TOUCH_SUSV3Gravatar walter harms2011-12-141-8/+15
| | | | | | | | | | This options -d -t -r where hidden under DESKTOP. This option allows the user to enable these options for (only) touch. The patch only changes DESKTOP to FEATURE_TOUCH_SUSV3. Signed-off-by: walter harms <wharms@bfs.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* touch: document -t DT option in help textGravatar Denys Vlasenko2011-12-131-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesGravatar Denys Vlasenko2011-10-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: trim too verbose error messages (-40 bytes)Gravatar Denys Vlasenko2011-10-211-5/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uudecode: fix buggy check for empty filenameGravatar Denys Vlasenko2011-10-181-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pwd: implement -LP if DESKTOPGravatar Denys Vlasenko2011-10-161-1/+51
| | | | | | | function old new delta pwd_main 41 244 +203 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add INIT_G()'s. No code changes.Gravatar Denys Vlasenko2011-09-213-0/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: fix -c +N. Closes 4111Gravatar Denys Vlasenko2011-09-171-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hostid: fix behavior on identifiers starting with zerosGravatar Pere Orga2011-08-163-9/+12
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesGravatar Denys Vlasenko2011-08-101-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove extra += who.oGravatar Denys Vlasenko2011-08-091-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: more compatible -P behaviorGravatar Ralf Friedl2011-08-091-2/+2
| | | | | | | | | | | | | In coreutils df, one of the effects of the option -P is to output everything in one line. This makes it much easier for a script to parse the output of df. This patch adds the same behavior to busybox df. function old new delta df_main 853 863 +10 Signed-off-by: Ralf Friedl <Ralf.Friedl@online.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* users: new applet.Gravatar Tito Ragusa2011-08-092-35/+62
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* usleep: do not check for usleep error, it should never failGravatar Denys Vlasenko2011-07-081-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* md5/shaNsum: make -c support a list of filesGravatar Lauri Kasanen2011-07-041-68/+58
| | | | | | | | function old new delta md5_sha1_sum_main 455 473 +18 Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* id: correct getgroups usageGravatar Denys Vlasenko2011-06-221-16/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* groups: make it NOEXECGravatar Denys Vlasenko2011-06-221-3/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix HAVE_STRVERSCMP check; add check for older uclibc versionsGravatar Denys Vlasenko2011-06-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* groups: new appletGravatar Tito Ragusa2011-06-213-11/+36
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add HAVE_STRVERSCMP, guard the only usage of strverscmp with #ifdefGravatar Denys Vlasenko2011-06-211-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix comment about -p (it's compatible now)Gravatar Denys Vlasenko2011-06-131-4/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: make -v and -X actually work as intendedGravatar Denys Vlasenko2011-06-131-7/+15
| | | | | | | | | | function old new delta strverscmp - 236 +236 sortcmp 186 254 +68 static.result_type - 60 +60 static.next_state 12 16 +4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsGravatar Denys Vlasenko2011-06-0549-55/+1
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: code shrinkGravatar Denys Vlasenko2011-05-211-14/+10
| | | | | | | function old new delta od_main 2147 2132 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: another fix for --stringsGravatar Denys Vlasenko2011-05-211-1/+4
| | | | | | | function old new delta od_main 2139 2147 +8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: fix -S NUM to not print chars >0x80Gravatar Denys Vlasenko2011-05-211-38/+19
| | | | | | | | | | function old new delta write_block 433 431 -2 print_ascii 217 215 -2 check_and_close 104 96 -8 od_main 2164 2139 -25 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: code shrinkGravatar Denys Vlasenko2011-05-211-82/+78
| | | | | | | | | | | | | function old new delta exit_code - 1 +1 open_next_file 73 72 -1 limit_bytes_to_format 1 - -1 ioerror 1 - -1 flag_pseudo_start 1 - -1 flag_dump_strings 1 - -1 od_main 2275 2164 -111 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: code shrink, fix "od --traditional FILE"Gravatar Denys Vlasenko2011-05-212-120/+100
| | | | | | | | | function old new delta parse_old_offset 107 125 +18 packed_usage 28715 28691 -24 od_main 2312 2275 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: optimize "tail -c HUGENUM REGULAR_FILE". Closes 3763.Gravatar Denys Vlasenko2011-05-201-15/+21
| | | | | | | function old new delta tail_main 1541 1547 +6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: code shrinkGravatar Denys Vlasenko2011-05-131-7/+11
| | | | | | | | | | | | function old new delta sort_and_display_files - 427 +427 scan_and_display_dirs_recur 497 488 -9 ls_main 765 735 -30 display_files 422 - -422 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 427/-461) Total: -34 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>