From 7157a2cf42c4cf7c2ec2805e0732b49ebabd975e Mon Sep 17 00:00:00 2001 From: M S Vishwanath Bhat Date: Sat, 10 Mar 2012 15:51:22 +0530 Subject: posix_fill_readdir: Using strcmp to compare GF_HIDDEN_PATH with entry->d_name instead of strncmp. Change-Id: I29b6fc81213e52a697ed96559c3216c5512799ed BUG: 802005 Signed-off-by: M S Vishwanath Bhat Reviewed-on: http://review.gluster.com/2910 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- xlators/storage/posix/src/posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 22a9574dcbf..f699e4c4da8 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -3489,8 +3489,7 @@ posix_fill_readdir (fd_t *fd, DIR *dir, off_t off, size_t size, #endif /* __NetBSD__ */ if ((uuid_compare (fd->inode->gfid, rootgfid) == 0) - && (!strncmp (GF_HIDDEN_PATH, entry->d_name, - strlen (GF_HIDDEN_PATH)))) { + && (!strcmp (GF_HIDDEN_PATH, entry->d_name))) { continue; } -- cgit