summaryrefslogtreecommitdiff
path: root/bin/ls/ls.c
AgeCommit message (Expand)Author
2023-10-07Simplify the display() function by getting rid of a useless bufferIngo Schwarze
2023-10-07Improve horizontal alignment in long format when printing minorIngo Schwarze
2020-10-07If we are asked to print the total number of blocks, do so even ifTodd C. Miller
2020-07-06Always print the directory name in -R mode; matches historical behavior.Todd C. Miller
2020-07-06Fix skipping of directories that begin with a '.' in -R mode.Todd C. Miller
2018-09-13Fix warnings caused by user_from_uid() and group_from_gid() nowTodd C. Miller
2018-02-04use sizeof, rather than the constant. on change in binary.Theo de Raadt
2018-02-04repair ugly indentsTheo de Raadt
2016-08-16Nuke some erroneous leading whitespace.Kenneth R Westerback
2016-08-16Bring types of variables used with struct stat into the modern world.Kenneth R Westerback
2016-03-28remove unused variableCharles Longeau
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
2015-12-01Support UTF-8: use wcwidth(3) for column adjustment and replaceIngo Schwarze
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-04ls can use tame "stdio rpath getpw". It does uid/gid lookups, usingTheo de Raadt
2015-06-25Put fts_close() where missing.Masao Uebayashi
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
2014-03-31restore the traditional behavior of -f implying -a; apparently Keith BosticIgor Sobrado
2013-05-30Fix column padding of inode numbers and block counts >2^32, as well asPhilip Guenther
2011-03-04add support for the (POSIX) -H flagOkan Demirmen
2010-09-12remove trailing spaces and tabs from source code; no binary change.Igor Sobrado
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-05-06do not ignore COLUMNS in -C mode, even if !isatty(STDOUT_FILENO)Todd T. Fries
2008-12-30add a comment explaining the rather obscure decision when to recurseOtto Moerbeek
2008-12-29fix previous; e.g. ls /var/spool/mqueue as an oridinary user. okOtto Moerbeek
2008-12-24Kill a race condition which occurs when listing a directory containingOtto Moerbeek
2008-09-04- make -ln and -nl combinations behave identically. currently -l overrides -n.Jason McIntyre
2007-05-07Change the -g flag from a no-op to be POSIX conforming. We allow theTodd C. Miller
2006-04-13Change maxsize to type off_t.David Hill
2005-11-30another unused variable found by lintTheo de Raadt
2005-11-29kill unused var found by lint. ok deraadt@Otto Moerbeek
2005-11-25do not exit from ls_main() but return; spotted by lintTheo de Raadt
2005-06-15remove whiteout supportTodd C. Miller
2005-03-10use fts_path if fts_name is not available, tweak and ok millertJared Yanovich
2004-04-02Unbreak alignment of fields when using -lh.Otto Moerbeek
2003-08-06-h, human readable sizes. from a jonathon gray mail to tech@Ted Unangst
2003-06-11ansification, art okTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-04-02strlcpy; millert okTheo de Raadt
2002-03-12o Remove local prototypes for group_from_gid() and user_from_uid()Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-07-09-WallTheo de Raadt
2000-07-19new strtofflags/fflagstostrMichael Shalayeff
1999-05-01defer conversion of unprintable filenames till final display, permittingTheo de Raadt
1999-02-24save cpu cycles by being more sensible about how we check conditionalsAaron Campbell
1999-02-23Break out main to an own file so we can include ls in ftpd.Artur Grabowski
1999-02-20add -x, -p, and -m options, based on netbsd workTheo de Raadt
1998-08-07fix exit code; problem reported by jsh@sun470.rd.qms.com; fix from freebsdTheo de Raadt
1997-09-18make ls -d still sort files in the regular order; reported byTheo de Raadt
1997-04-01option 'n' was unused, so let's come up with a feature to use it!!! YEAH!!Theo de Raadt