[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-bug
Subject:    install fails on setgid directory
From:       Alexandre Oliva <oliva () dcc ! unicamp ! br>
Date:       1999-05-17 11:35:21
[Download RAW message or body]

On GNU/Linux RedHat 5.2/x86, with glibc-2.0.7-29, I've met the
following condition: a directory had the setgid bit set to a group I
didn't belong to.  The outcome was that, using GNU install (from
fileutils 4.0) to install a file in such a directory always ended up
in an `Operation not permitted' error.

Some investigation revealed that glibc would return EPERM upon a
chown() call, even though both the uid and the gid were -1.  After
chgrp'ing the installation directory or disabling setgid, installation 
would complete successfully.

Although I believe this is a bug in glibc (Cc'ed), it would be wise if
GNU install would use this patch to work around the problem, by
avoiding the call to chown() if there's nothing to be changed.

Hope this helps,

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists

["install-chown.patch" (application/x-patch)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic