summaryrefslogtreecommitdiffstats
path: root/bin/ls
Commit message (Collapse)AuthorAgeFilesLines
* Reference maclabel(7).chris2003-01-201-1/+3
| | | | Sponsored by: DARPA, Network Associates Laboratories
* pathconf() and acl_get_file() follow links so they cannot be used totjr2002-12-191-0/+8
| | | | | | | | | determine whether a symlink has an ACL. Instead, assume that symbolic links don't have ACLs and don't bother checking. Avoids spurious ENOENT warnings when listing directories containing broken symlinks on filesystems with ACLs enabled. Pointed out by: rwatson, bde
* Improve handling of symlink targets when listing MAC labels: don'trwatson2002-12-181-6/+13
| | | | | | | | do the wrong thing when the symlink doesn't have a target, by considering !f_label in the construction of ch_options. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* mdoc(7) police: markup fixes.ru2002-11-251-6/+9
| | | | Approved by: re
* Use warn() instead of perror() or fprintf() where appropriate.tjr2002-11-062-14/+8
|
* Print a `+' character after the standard UNIX permission fields in longtjr2002-11-032-2/+73
| | | | | | | | listings if the file has an extended ACL (more than the required 3 entries). This is what Solaris and IRIX do, and what the withdrawn POSIX.2c standard required. Reviewed by: rwatson (an earlier version of the patch)
* Do not include <sys/syslimits.h> directly; it is not intended for generalwollman2002-10-271-1/+0
| | | | consumption.
* Attempt improved use of fts results: use the correct path to therwatson2002-10-241-4/+14
| | | | | | | | | | object to retrieve label information on, rather than directly consuming the fts-provided paths (none of which are quite right). This is based on the similar readlink() code, and may contain the same bugs. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Teach "ls -Z" to use the policy-agnostic MAC label interfaces ratherrwatson2002-10-247-238/+69
| | | | | | | | | | | than the LOMAC-specific interfaces for listing MAC labels. This permits ls to view MAC labels in a manner similar to getfmac, when ls is used with the -l argument. Next generation LOMAC will use the MAC Framework so should "just" work with this and other policies. Not the prettiest code in the world, but then, neither is ls(1). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Constify, staticify, rationalise types and fix other related warnings.markm2002-10-231-8/+8
|
* Constify to squash some warnings.markm2002-10-232-2/+2
|
* Print non-printing characters in directory names, as well as file names,tjr2002-10-183-5/+9
| | | | | | | as `?' or `\ooo', depending on whether the -b or -B flags were used. PR: 43995 MFC after: 1 month
* Output "human-readable" values with a non-0 precision wheredd2002-10-181-7/+9
| | | | | | | | appropriate. Before this, a 2.9 GB file was misleadingly reported as "2G". This mostly brings unit_adjust() in line with what is in du(1). Reviewed by: jmallett Approved by: nik
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structwollman2002-09-211-2/+2
| | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch
* Fix a warning of "possibly used before initialisation".keramida2002-08-291-2/+1
| | | | Reviewed by: tjr
* Replace various spellings with FALLTHROUGH which is lint()ablecharnier2002-08-251-10/+10
|
* s/filesystem/file system/ as discussed on -developerstrhodes2002-08-211-1/+1
|
* mdoc(7) police: fixed the document date.ru2002-08-191-1/+1
| | | | Submitted by: iedowse
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-111-1/+1
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* err() is documented as allowing NULL for the format string but GCC isn'tdillon2002-07-102-6/+6
| | | | happy about it any more so change the usage to make buildworld work again.
* Consistently use __FBSDIDobrien2002-06-304-16/+9
|
* Ignore empty COLUMNS environment variable. COLUMNS should take precedencetjr2002-06-041-5/+5
| | | | over TTY width found via ioctl() (SUSv3)
* mdoc(7) police: markup nits.ru2002-05-291-2/+3
|
* Add missing options required by SUSv3:tjr2002-05-195-16/+100
| | | | | | | | -m List files across the page, separated by commas. -p Print a slash after directory names -x Same as -C but sort across the columns rather than down Submitted by: Kyle Martin <mkm@ieee.org>
* Consistancy check s/file system/filesystem/trhodes2002-05-161-1/+1
| | | | Reviewed by: brian
* restore missing default case removed in ls.c:r1.57billf2002-05-152-0/+4
| | | | | | add break statements to default cases where missing. Submitted by: bde
* Make 'user' and 'group' const as to not discard the qualifier from thejmallett2002-05-151-1/+2
| | | | | functions we use to assign them. Doesn't seem to be anything else that relies on these being non-const.
* Remove an empty default case to make this syntactically correct. Not therejmallett2002-05-151-1/+0
| | | | is as good as blaknk.
* ls(1) is utility not functioncharnier2002-04-161-1/+1
|
* Document option to option dependancy. Fix typo.jwd2002-04-151-3/+7
| | | | MFC after: 1 week
* Install sys/security/lomac/*.h to /usr/include/security/lomac/.ru2002-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Install sys/<arch>/include/pc/*.h to /usr/include/machine/pc/. PR: docs/29534 Install sys/netatm/*/*.h to /usr/include/netatm/*/. Don't install compatibility symlinks for <machine/soundcard.h> and <machine/joystick.h>. Three years is enough to be aware of the change, and these weren't visible in the SHARED=symlinks case. Back out include/Makefile,v 1.160 that was a null change anyway due to the bug in the path, and we now don't want to install these headers because they would otherwise be invisible in the SHARED=symlinks case. Don't install IPFILTER headers. Userland utilities fetch them directly, and they were not visible in the SHARED=symlinks case. Resurrect SHARED=symlinks in Makefile.inc1. PR: bin/28002 Prodded by: bde MFC after: 2 weeks
* NAI DBA update.rwatson2002-03-142-2/+2
|
* Add (unsigned char) cast lost in WARNS=4 fixes which break 8bit localesache2002-02-281-1/+1
| | | | PR: 35421
* #include <time.h> for the definition of time functions instead ofbde2002-02-251-2/+1
| | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Removed unused includes.
* Fixed divots that I created when I moved prototypes of group_from_gidimp2002-02-191-0/+2
| | | | | | | and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp
* Correct inadvertent style botches in previous commit.kris2002-02-041-2/+2
|
* Lock down with WFORMAT=1 except those directories with unfixed warnings.kris2002-02-041-0/+2
| | | | Tested on i386 and alpha.
* Use __FBSDID() and clean up the vendor tags.markm2002-02-035-21/+27
|
* WARNS=4 fixes, plus a healthy dose of fixes inspired by lint.markm2002-02-037-72/+84
|
* Fix unused variable.imp2002-02-021-0/+1
|
* o __P has been reovedimp2002-02-026-109/+71
| | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
* mdoc(7) police: tidy up.ru2002-01-091-54/+87
|
* Fixed style bug (unsorting of SRCS) in rev.1.15.bde2001-12-291-1/+1
|
* Fixed style bugs in revs. 1.6, 1.10 and 1.12.bde2001-12-291-3/+2
|
* Fixed missing DPADD and disordered LDADD in rev.1.17bde2001-12-291-1/+2
| | | | | | Fixed setting of WARNS in rev.1.16. Options should normally be set using using "?=", not using "=", so that the setting is easy to override on the command line, and setting WARNS to 0 should not be an exception.
* LSCOLOURS should be spelt LSCOLORS.joe2001-12-291-1/+1
| | | | Submitted by: Jordan DeLong <fracture@allusion.net
* Remove part of a diff committed at the end of the file.ben2001-12-291-20/+0
|
* Force raw printing of non-printable characters via the -w option.joe2001-12-292-3/+12
| | | | PR: bin/28007
* Restore these files to shiny KNF.joe2001-12-292-82/+88
|
* Convert some spaces into tabs that I missed first time around.joe2001-12-281-30/+30
|
OpenPOWER on IntegriCloud