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

CVS commit program cvs at parl.clemson.edu
Wed Mar 3 11:13:04 EST 2004


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

Modified Files:
	pvfs2-util.c 
Log Message:
bugfix to string parsing; this was resulting in some bogus BMI addresses
being used later on


Index: pvfs2-util.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/misc/pvfs2-util.c,v
diff -p -u -r1.25 -r1.26
--- pvfs2-util.c	30 Jan 2004 20:12:11 -0000	1.25
+++ pvfs2-util.c	3 Mar 2004 16:13:03 -0000	1.26
@@ -152,9 +152,9 @@ int PVFS_util_parse_pvfstab(pvfs_mntlist
 	    /* config server and fs name are a special case, take one 
 	     * string and split it in half on "/" delimiter
 	     */
+	    *last_slash = '\0';
 	    strcpy(pvfstab_p->ptab_array[i].pvfs_config_server,
                    tmp_ent->mnt_fsname);
-	    *last_slash = '\0';
 	    last_slash++;
 	    pvfstab_p->ptab_array[i].pvfs_fs_name = strdup(last_slash);
             if (!pvfstab_p->ptab_array[i].pvfs_fs_name)



More information about the PVFS2-CVS mailing list