aboutsummaryrefslogtreecommitdiff
path: root/coreutils/ls.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* selinux support by Yuichi Nakamura <ynakam@hitachisoft.jp> (HitachiSoft)Denis Vlasenko2007-03-101-1/+5
|
* ls: w/o -l follow symlinks to dirs for commandline argsDenis Vlasenko2007-02-281-8/+10
|
* syslogd: fix "readpath bug" by using readlink insteadDenis Vlasenko2007-02-111-1/+1
| | | | libbb: rename xgetcwd and xreadlink
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* ls: stop doing time() for each file in "ls -l"Denis Vlasenko2007-01-191-1/+14
| | | | | ls: use fully-buffered stdout (can it be problematic on VERY slow/hanging NFS mounts?)
* ls: use get_cached_username/groupnameDenis Vlasenko2007-01-191-9/+5
|
* style fixesDenis Vlasenko2006-12-261-2/+2
| | | | last xcalloc replaced by xzalloc
* fix support for globally disabling --long-options.Denis Vlasenko2006-11-291-0/+4
| | | | (disabling them saves ~4K on fully configured bbox)
* header_verbose_list: stop truncating file size in listingDenis Vlasenko2006-11-241-2/+2
|
* httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net!Denis Vlasenko2006-11-211-1/+1
|
* ls: silly comment fixesDenis Vlasenko2006-10-281-9/+9
|
* ls: cleanup part 2. ifdef forest is much less scary now :)Denis Vlasenko2006-10-281-188/+138
|
* ls: cleanup part 1Denis Vlasenko2006-10-281-269/+179
|
* silly size savings and capitalization fixesDenis Vlasenko2006-10-261-1/+1
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-4/+4
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-4/+4
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* whitespace cleanupDenis Vlasenko2006-09-171-1/+1
|
* Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley2006-08-031-1/+1
| | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-10/+2
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* I broke allbareconfig with half-finished cleanups I'd forgotten weren't done.Rob Landley2006-06-201-23/+18
| | | | | Got both to a decent stopping point. (There's a lot more cleanup to do on ls.c but now is not the time...)
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-85/+27
| | | | that and callers wind up typecasting it back.
* Patch from Rich Felker:Rob Landley2006-06-151-10/+9
| | | | | | | | | | - duplicated format bit 14 forced LIST_EXEC always-on - -p option was behaving just like -F (SUSv3 says -p only shows / for   dirs, not other special symbols) - tests for LIST_EXEC in color functions were nonsense (constant   tests). i assume they were supposed to be (all_fmt & LIST_EXEC)   however having coloring of executable files depend on -F seems   undesirable.
* - ls: remove unused variableBernhard Reutner-Fischer2006-05-291-10/+5
| | | | | | | | - dpkg.c, diff: use xstat text data bss dec hex filename 848823 9100 645216 1503139 16efa3 busybox_old 848679 9100 645216 1502995 16ef13 busybox_unstripped bloatcheck is completely useless as it sees -79 for this, which is bogus.
* Fix some warnings in allbareconfig.Rob Landley2006-05-281-0/+2
|
* Patch from Rich Felker to make ls use libc's qsort.Rob Landley2006-05-031-26/+10
|
* Patch from Shaun Jackman:Rob Landley2006-05-021-7/+11
| | | | | | | | | | | ls has an ugly bug. ls uses an array of pointers, the elements of which are all in a linked list. To free the elements, instead of freeing all the elements in the array, array[0..nelements], it frees by iterating the linked list starting at array[0], which it assumes is the head of the list. Unfortunately, ls also sorts the array! So, array[0] is no longer the head, but somewhere in the middle of the linked list. This patch fixes this bug, and also adds an ENABLE_FEATURE_CLEAN_UP stanza.
* - add and use bb_opendir(), bb_xopendir().Bernhard Reutner-Fischer2006-04-121-15/+2
| | | | | | | | text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1
* Patch from Denis Vlasenko to add xstat() and use it.Rob Landley2006-03-131-1/+1
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* Selinux fix from Jan Kiszka.Rob Landley2006-03-011-5/+1
|
* clean up yet more annoying signed/unsigned mismatches and fixupEric Andersen2006-01-301-1/+1
| | | | yet more incorrect types
* just whitespaceTim Riker2006-01-251-31/+31
|
* another more const"Vladimir N. Oleynik"2005-10-201-1/+1
|
* - rename libbb's password helpers as suggested in libbb.hBernhard Reutner-Fischer2005-09-201-2/+2
| | | | | | | | my_getpwnam -> bb_xgetpwnam /* dies on error */ my_getgrnam -> bb_xgetgrnam /* dies on error */ my_getgrgid -> bb_getgrgid my_getpwuid -> bb_getpwuid my_getug -> bb_getug
* Cleanup patch by Bernhard Fischer, removing unnecessary includes ofRob Landley2005-09-111-1/+1
| | | | getopt.h, whitespace changes, typos, etc.
* - usage fresh bb_getopt_ulflags for ls -- very size reduce."Vladimir N. Oleynik"2005-09-051-77/+64
| | | | | - small indent corrections - remove unecessary malloc and free
* commiting patch from bug 71:Paul Fox2005-08-011-2/+61
| | | | | 0000071: patch: implement "--color" option for ls coloring control
* A patch from Takeharu KATO to update/fix SE-Linux support.Rob Landley2005-05-031-24/+24
|
* Patch from David Daney to make the -i option work with -l.Glenn L McGrath2004-09-241-1/+1
|
* Tito writes:Eric Andersen2004-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I've spent the half night staring at the devilish my_getpwuid and my_getgrgid functions trying to find out a way to avoid actual and future potential buffer overflow problems without breaking existing code. Finally I've found a not intrusive way to do this that surely doesn't break existing code and fixes a couple of problems too. The attached patch: 1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows 2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h. 3) The behaviour of tar, ls and logger is unchanged. 4) The behavior of ps with somewhat longer usernames messing up output is fixed. 5) The only bigger change was the increasing of size of the buffers in id.c to avoid false negatives (unknown user: xxxxxx) with usernames longer than 8 chars. The value i used ( 32 chars ) was taken from the tar header ( see gname and uname). Maybe this buffers can be reduced a bit ( to 16 or whatever ), this is up to you. 6) The increase of size of the binary is not so dramatic: size busybox text data bss dec hex filename 239568 2300 36816 278684 4409c busybox size busybox_fixed text data bss dec hex filename 239616 2300 36816 278732 440cc busybox 7) The behaviour of whoami changed: actually it prints out an username cut down to the size of the buffer. This could be fixed by increasing the size of the buffer as in id.c or avoid the use of my_getpwuid and use getpwuid directly instead. Maybe this colud be also remain unchanged...... Please apply if you think it is ok to do so. The diff applies on today's cvs tarball (2004-08-25). Thanks in advance, Ciao, Tito
* BusyBox has no business hard coding the number of major and minor bits for aEric Andersen2004-07-261-7/+3
| | | | | | | | | dev_t. This is especially important now that the user space concept of a dev_t and the kernel concept of a dev_t are divergant. The only bit of user space allowed to know the number of major and minor bits is include/sys/sysmacros.h (i.e. part of libc). When used with a current C library and a 2.6.x kernel, this fix should allow BusyBox to support wide device major/minor numbers. -Erik
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-4/+4
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Brian Pomerantz writes:Eric Andersen2004-03-231-1/+1
| | | | | | | | | | | | | | | | I've noticed a bug in the "autowidth" feature more, and is probably in others. The call to the function get_terminal_width_height() passes in a file descriptor but that file descriptor is never used, instead the ioctl() is called with 0. In more_main() the call to get_terminal_width_height() passes 0 as the file descriptor instead of fileno(cin). This isn't a problem when you more a file (e.g. "more /etc/passwd") but when you pipe a file to it (e.g. "cat /etc/passwd | more") the size of the terminal cannot be determined because file descriptor 0 is not a terminal. The fix is simple, I've attached a patch for more.c and get_terminal_width_height.c. BAPper
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+2
|
* Fix broken sort order flags.Manuel Novoa III2004-03-081-3/+2
|
* Patch from Matt Kraai to fix debian bug number 231994.Glenn L McGrath2004-03-061-4/+7
| | | | There was an extra blank line preceding the first directory.
* Vladimir N. Oleynik writes:Eric Andersen2004-02-051-2/+2
| | | | | | | | | | | Hi, Glenn. Current CVS "ls" applet have small problem: some options ignoring. Last patch attached ;-) --w vodz
* Fix a bug where `ls -le` would print the time twice.Glenn L McGrath2004-01-181-13/+13
|
* Use bb_getopt_ulflags, save 200-300 bytesGlenn L McGrath2004-01-181-89/+131
|
* Fix oversight with CONFIG_FEATURE_AUTOWIDTH handlingEric Andersen2003-11-041-0/+2
|