-
Re: 2 (very old) bugs?
On Mon, Oct 27, 2008 at 04:03:30PM +1100, Andrew Reilly wrote:[color=blue]
> On Sun, Oct 26, 2008 at 10:43:04AM +0000, Gavin Atkinson wrote:[color=green]
> > On Sun, 26 Oct 2008, Yannick Cadin wrote:
> >[color=darkred]
> > >- first in the stat command. Only with the -x option. If you execute stat
> > >-x on /tmp or /usr/bin/passwd parameters for example, the numeric
> > >representation of mode is wrong. The "special" bits are always 0. No
> > >suid-bit, no sticky bit![/color]
> >
> > Although this does seem wrong to me, the code does it deliberately. I'm
> > not sure why, it may be to be compatible with Linux (as the -x option is
> > documented in the man page as giving "Linux format" output).[/color]
>
> I don't know the history, but must guess from what you've
> said that it was attempting to be compatible with an
> old linux stat, beause the one that I have installed in
> /usr/compat/linux/usr/bin/stat produces quite different output:[/color]
Just in case I wasn't clear (and it seems to me that I wasn't):
would a reasonable resolution to this bug report be the removal
of the "-x" option from our stat?
Cheers,
Andrew
_______________________________________________
[email]freebsd-stable@freebsd.org[/email] mailing list
[url]http://lists.freebsd.org/mailman/listinfo/freebsd-stable[/url]
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"