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
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
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
+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 -
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