summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKotresh H R <khiremat@redhat.com>2014-08-04 15:33:02 +0530
committerVijay Bellur <vbellur@redhat.com>2014-09-08 10:42:39 -0700
commit85275c5f1d9fe120ed45147a15be74b70d4c7958 (patch)
tree0d09520ddee36de22712239b40cce1d9f3b9c446 /xlators
parent010c82b0027300e45cc8db5d29ad87d39b290147 (diff)
geo-rep/libgfchangelog: Support of symlinks while creation of working dir.
In gf_changelog_register, enable symlink support while creating working directory if its not already created. BUG: 1138952 Change-Id: I8fec52a5768fae46ce30a2331f30f1d8d5e2e173 Signed-off-by: Kotresh H R <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/8409 Reviewed-by: Venky Shankar <vshankar@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: Venky Shankar <vshankar@redhat.com> Reviewed-on: http://review.gluster.org/8641 Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/changelog/lib/src/gf-changelog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c
index 5586580a748..f3f6ffbe976 100644
--- a/xlators/features/changelog/lib/src/gf-changelog.c
+++ b/xlators/features/changelog/lib/src/gf-changelog.c
@@ -465,7 +465,7 @@ gf_changelog_register (char *brick_path, char *scratch_dir,
gfc->gfc_fd = gfc->gfc_sockfd = -1;
if (stat (scratch_dir, &buf) && errno == ENOENT) {
- ret = mkdir_p (scratch_dir, 0600, _gf_false);
+ ret = mkdir_p (scratch_dir, 0600, _gf_true);
if (ret) {
errn = errno;
goto cleanup;