diff options
Diffstat (limited to 'xlators/storage/posix/src')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 0f0d500e420..3bd7fe025e3 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -450,7 +450,7 @@ posix_do_chmod (xlator_t *this, { int32_t ret = -1; - ret = chmod (path, stbuf->st_mode); + ret = lchmod (path, stbuf->st_mode); if ((ret == -1) && (errno == ENOSYS)) { ret = chmod (path, stbuf->st_mode); } @@ -474,7 +474,7 @@ posix_do_chown (xlator_t *this, if (valid & GF_SET_ATTR_GID) gid = stbuf->st_gid; - ret = chown (path, uid, gid); + ret = lchown (path, uid, gid); return ret; } |