lkml.org 
[lkml]   [1999]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectFix for knfsd mkdir in linux-2.2.1
From

Hi,

The following patch fixes the problem with mkdir clearing the setgid
bit on newly created directories (see Olaf's comment in the code).

Cheers,
Trond

--- linux/fs/nfsd/vfs.c-ac5 Wed Jan 27 22:49:46 1999
+++ linux/fs/nfsd/vfs.c Sat Feb 13 19:59:02 1999
@@ -734,7 +734,7 @@
* directories via NFS.
*/
err = 0;
- if ((iap->ia_valid &= (ATTR_UID|ATTR_GID|ATTR_MODE)) != 0)
+ if ((iap->ia_valid &= ~(ATTR_UID|ATTR_GID|ATTR_MODE)) != 0)
err = nfsd_setattr(rqstp, resfhp, iap);
out:
return err;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.028 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site