From f5ac764d9d18f7eaa3d5b4547a94d92d99301ddf Mon Sep 17 00:00:00 2001 From: Denis Cheng Date: Mon, 13 Aug 2007 11:01:58 +0800 Subject: [PATCH] --- yaml --- r: 67661 b: refs/heads/master c: 5d35e31f43c4910d0b6afc5160728a84bbaf86f0 h: refs/heads/master i: 67659: 734c2b2cb8900cf616de6e5a196ff0a9dec17b41 v: v3 --- [refs] | 2 +- trunk/fs/gfs2/ops_fstype.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4c067efc0f63..6b3c238c704c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2d3ba1ea97d839e60d742ccf9a6de5bf039c0b53 +refs/heads/master: 5d35e31f43c4910d0b6afc5160728a84bbaf86f0 diff --git a/trunk/fs/gfs2/ops_fstype.c b/trunk/fs/gfs2/ops_fstype.c index 25cfab95eb9c..6c820cb23473 100644 --- a/trunk/fs/gfs2/ops_fstype.c +++ b/trunk/fs/gfs2/ops_fstype.c @@ -144,7 +144,8 @@ static int init_names(struct gfs2_sbd *sdp, int silent) snprintf(sdp->sd_proto_name, GFS2_FSNAME_LEN, "%s", proto); snprintf(sdp->sd_table_name, GFS2_FSNAME_LEN, "%s", table); - while ((table = strchr(sdp->sd_table_name, '/'))) + table = sdp->sd_table_name; + while ((table = strchr(table, '/'))) *table = '_'; out: