[PVFS2-CVS] commit by robl in pvfs2-1/src/common/misc: pvfs2-util.c

CVS commit program cvs at parl.clemson.edu
Wed Sep 28 19:59:18 EDT 2005


Update of /projects/cvsroot/pvfs2-1/src/common/misc
In directory parlweb:/tmp/cvs-serv1355/src/common/misc

Modified Files:
	pvfs2-util.c 
Log Message:
[pcarns]: a few stragglers were not calling gen_credentials().  While we're at
it, make gen_credentials use effective uid/gid instead of real uid/gid


Index: pvfs2-util.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/common/misc/pvfs2-util.c,v
diff -u -w -p -u -r1.79 -r1.80
--- pvfs2-util.c	23 Aug 2005 18:44:17 -0000	1.79
+++ pvfs2-util.c	28 Sep 2005 22:59:17 -0000	1.80
@@ -75,8 +75,8 @@ void PVFS_util_gen_credentials(
     assert(credentials);
 
     memset(credentials, 0, sizeof(PVFS_credentials));
-    credentials->uid = getuid();
-    credentials->gid = getgid();
+    credentials->uid = geteuid();
+    credentials->gid = getegid();
 }
 
 int PVFS_util_get_umask(void)



More information about the PVFS2-CVS mailing list