Date: Thu, 19 Dec 2002 11:25:59 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Robert Watson <rwatson@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/bin/ls ls.c Message-ID: <20021219105457.U28005-100000@gamplex.bde.org> In-Reply-To: <200212182105.gBIL5F1Z012938@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Dec 2002, Robert Watson wrote: > rwatson 2002/12/18 13:05:15 PST > > Modified files: > bin/ls ls.c > Log: > Improve handling of symlink targets when listing MAC labels: don't > do the wrong thing when the symlink doesn't have a target, by > considering !f_label in the construction of ch_options. ls still seems to do the wrong thing for symlinks without targets: $ ls -l /etc/malloc.conf ls: /etc/malloc.conf: No such file or directory lrwxrwxrwx 1 root wheel 2 Jun 29 00:36 /etc/malloc.conf -> aj The RELENG_4 ls run on -current works like I expect: $ /d/tmp/ls/ls -l /etc/malloc.conf lrwxrwxrwx 1 root wheel 2 Jun 29 00:36 /etc/malloc.conf -> aj The spurious warning is printed by aclmode() after pathconf() fails. pathconf() follows symlinks so it cannot work correctly here unless ls is following symlinks. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021219105457.U28005-100000>