[Pvfs2-cvs] commit by dbonnie in pvfs2/src/apps/admin: pvfs2-cp.c
CVS commit program
cvs at parl.clemson.edu
Wed Sep 3 13:28:57 EDT 2008
Update of /anoncvs/pvfs2/src/apps/admin
In directory parlweb1:/tmp/cvs-serv4443/src/apps/admin
Modified Files:
Tag: cu-security-branch
pvfs2-cp.c
Log Message:
Oops...forgot to remove a temporary variable.
Index: pvfs2-cp.c
===================================================================
RCS file: /anoncvs/pvfs2/src/apps/admin/pvfs2-cp.c,v
diff -p -u -r1.26.2.4 -r1.26.2.5
--- pvfs2-cp.c 3 Sep 2008 15:45:48 -0000 1.26.2.4
+++ pvfs2-cp.c 3 Sep 2008 17:28:57 -0000 1.26.2.5
@@ -619,8 +619,8 @@ static int generic_open(file_object *obj
memset(&stat_buf, 0, sizeof(struct stat));
/* preserve permissions doing a unix => pvfs2 copy */
- int test = stat(srcname, &stat_buf);
- if (test == -1)
+ ret = stat(srcname, &stat_buf);
+ if (ret < 0)
{
/* PVFS2 filesystem is not mounted. The source permissions
* were copied into the destination above in main to account
More information about the Pvfs2-cvs
mailing list