Re: stat(1) -x option shows no setuid/setgid - patch

2010-10-28 Thread Philip Guenther
On Wednesday, October 6, 2010, LEVAI Daniel wrote: > On Tue, Oct 05, 2010 at 14:46:42 -0700, Philip Guenther wrote: >> On Sat, 2 Oct 2010, LEVAI Daniel wrote: > [...] >> > Mode: (104555/-r-sr-xr-x) >> >^^^ >> >> Hmm, that doesn't match the Linux/GNU stat behavior, which doesn't show >> the

Re: stat(1) -x option shows no setuid/setgid - patch

2010-10-06 Thread LEVAI Daniel
On Tue, Oct 05, 2010 at 14:46:42 -0700, Philip Guenther wrote: > On Sat, 2 Oct 2010, LEVAI Daniel wrote: [...] > > Mode: (104555/-r-sr-xr-x) > >^^^ > > Hmm, that doesn't match the Linux/GNU stat behavior, which doesn't show > the file-type bits, bits which no sane program looks at except

Re: stat(1) -x option shows no setuid/setgid - patch

2010-10-05 Thread Philip Guenther
On Sat, 2 Oct 2010, LEVAI Daniel wrote: > I noticed that executin stat -x on a setuid or setgid file don't display > the setuid/setgid mode in the numeric Mode: field: > > $ /usr/bin/stat -x /usr/bin/passwd > > File: "/usr/bin/passwd" > Size: 2

Re: stat(1) -x option shows no setuid/setgid - patch

2010-10-02 Thread Chris Palmer
+1 LEVAI Daniel writes: > Index: stat.c > === > RCS file: /cvs/src/usr.bin/stat/stat.c,v > retrieving revision 1.16 > diff -p -u -r1.16 stat.c > --- stat.c1 Sep 2010 06:35:05 - 1.16 > +++ stat.c2 Oct 2010 17:35:17 -

stat(1) -x option shows no setuid/setgid - patch

2010-10-02 Thread LEVAI Daniel
Hi! I noticed that executin stat -x on a setuid or setgid file don't display the setuid/setgid mode in the numeric Mode: field: $ /usr/bin/stat -x /usr/bin/passwd File: "/usr/bin/passwd" Size: 22484FileType: Regular File Mode: (0555/-r