[EMAIL PROTECTED] (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.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to