remove trailing ':' when building dirs= options from odf sb file
authorYiannis Pericleous <yiannos@agora2.fsl.cs.sunysb.edu>
Fri, 25 May 2007 21:29:23 +0000 (17:29 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:02:36 +0000 (19:02 -0400)
fs/unionfs/odf.c

index 95dd2454300eb6782de2c95745d55268b97c6a84..b8ff210102ca42bf4226819f328c8faf59cf2716 100644 (file)
@@ -1852,6 +1852,8 @@ char *odf_read_sb_data(struct odf_sb_info *odf_sb, int **bid)
                ptr+=strlen(ptr);
                i++;
        }
+
+       *(ptr - 1) = 0; /* remove trailing ':' */
        err = 0;
        set_fs(oldfs);
        filp_close(file,NULL);