bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils mknod test fails if built in sgid directory


From: Paul Eggert
Subject: Re: coreutils mknod test fails if built in sgid directory
Date: Thu, 15 Jun 2006 11:28:16 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

address@hidden (Bob Proulx) writes:

>       * tests/misc/mknod: Improve permission checks to handle
>       running mkdir test in set-gid directories.

Thanks, I installed that on the trunk.  This reflects a change in
behavior to mkdir (for compatibility with Solaris) that is not in the
5.9x branch, so we shouldn't need the patch there.

However, now that I've looked into it, we're still not quite
compatible in a few odd cases, and in some cases both systems seem to
be just plain wrong:

   $ uname -a 
   SunOS lindbrook 5.8 Generic_117350-28 sun4u sparc SUNW,Sun-Fire-V440
   $ ls -ld .
   drwxr-sr-x   2 eggert   csfac       4096 Jun 15 11:22 .
   $ /bin/mkdir -m +t a
   $ gmkdir -m +t b
   $ ls -ld a b
   drwxrwsrwt   2 eggert   csfac       4096 Jun 15 11:23 a
   drwxrwxrwt   2 eggert   csfac       4096 Jun 15 11:23 b    (*)
   $ /bin/mkdir -m g-s c
   $ gmkdir -m g-s d
   $ ls -ld c d
   drwxrwsrwx   2 eggert   csfac       4096 Jun 15 11:23 c    (*)
   drwxrwsrwx   2 eggert   csfac       4096 Jun 15 11:23 d    (*)

I'd say that the outputs marked (*) are wrong, which means two bugs
for GNU mkdir and one for Solaris mkdir.  I'll take a look at the GNU
code.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]