[PVFS2-CVS] commit by robl in pvfs2-1/src/apps/vis: pvfs2-vis.c
CVS commit program
cvs at parl.clemson.edu
Wed Sep 28 19:59:17 EDT 2005
Update of /projects/cvsroot/pvfs2-1/src/apps/vis
In directory parlweb:/tmp/cvs-serv1355/src/apps/vis
Modified Files:
pvfs2-vis.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-vis.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/apps/vis/pvfs2-vis.c,v
diff -u -w -p -u -r1.14 -r1.15
--- pvfs2-vis.c 28 Jul 2004 14:32:30 -0000 1.14
+++ pvfs2-vis.c 28 Sep 2005 22:59:17 -0000 1.15
@@ -105,8 +105,7 @@ int pvfs2_vis_start(char* path, int upda
return(-PVFS_ENOENT);
}
- creds.uid = getuid();
- creds.gid = getgid();
+ PVFS_util_gen_credentials(&creds);
/* count how many I/O servers we have */
ret = PVFS_mgmt_count_servers(cur_fs, &creds, PVFS_MGMT_IO_SERVER,
More information about the PVFS2-CVS
mailing list