[PVFS2-CVS] commit by robl in pvfs2-1/include: pvfs2-util.h
CVS commit program
cvs at parl.clemson.edu
Tue Nov 8 11:41:30 EST 2005
Update of /projects/cvsroot/pvfs2-1/include
In directory parlweb:/tmp/cvs-serv10966/include
Modified Files:
pvfs2-util.h
Log Message:
[pcarns]: somewhere along the line permission translation droped setgid bits.
add them back.
Index: pvfs2-util.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/include/pvfs2-util.h,v
diff -u -w -p -u -r1.38 -r1.39
--- pvfs2-util.h 4 Oct 2005 19:04:53 -0000 1.38
+++ pvfs2-util.h 8 Nov 2005 16:41:30 -0000 1.39
@@ -97,20 +97,22 @@ inline uint32_t PVFS_util_object_to_sys_
static inline int PVFS2_translate_mode(int mode)
{
int ret = 0, i = 0;
- static int modes[9] =
+ static int modes[10] =
{
S_IXOTH, S_IWOTH, S_IROTH,
S_IXGRP, S_IWGRP, S_IRGRP,
- S_IXUSR, S_IWUSR, S_IRUSR
+ S_IXUSR, S_IWUSR, S_IRUSR,
+ S_ISGID
};
- static int pvfs2_modes[9] =
+ static int pvfs2_modes[10] =
{
PVFS_O_EXECUTE, PVFS_O_WRITE, PVFS_O_READ,
PVFS_G_EXECUTE, PVFS_G_WRITE, PVFS_G_READ,
PVFS_U_EXECUTE, PVFS_U_WRITE, PVFS_U_READ,
+ PVFS_G_SGID
};
- for(i = 0; i < 9; i++)
+ for(i = 0; i < 10; i++)
{
if (mode & modes[i])
{
More information about the PVFS2-CVS
mailing list