diff options
author | Csaba Henk <csaba@gluster.com> | 2011-01-28 03:34:05 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-10 22:17:18 -0800 |
commit | b6fcde94b37ba6d669ef24e4537846f33ac8ef41 (patch) | |
tree | 227115813dc3da199fdb11904690bf5a8c32cd05 /xlators/mgmt/glusterd/src | |
parent | 44773417bcaafeb6b7a8c44b5dc22bc7969e3102 (diff) |
volgen: specify a mode argument for open(2)
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2310 (georeplication)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2310
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index bf3147738..410b6cd72 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -1472,7 +1472,7 @@ generate_brick_volfiles (glusterd_volinfo_t *volinfo) get_vol_tstamp_file (tstamp_file, volinfo); if (marker) { - ret = open (tstamp_file, O_WRONLY|O_CREAT|O_EXCL); + ret = open (tstamp_file, O_WRONLY|O_CREAT|O_EXCL, 0644); if (ret == -1 && errno == EEXIST) ret = 0; if (ret == -1) { |