From 51394183e94ac0be70fcf22793b2040ba3f0b918 Mon Sep 17 00:00:00 2001 From: Kotresh H R Date: Mon, 4 Aug 2014 15:33:02 +0530 Subject: 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. Change-Id: I4b81762d04f5276a65087d2ff94f2a36dc504b58 BUG: 1125843 Signed-off-by: Kotresh H R Reviewed-on: http://review.gluster.org/8409 Reviewed-by: Venky Shankar Tested-by: Gluster Build System Tested-by: Venky Shankar --- xlators/features/changelog/lib/src/gf-changelog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/changelog/lib') 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; -- cgit