summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
authorM S Vishwanath Bhat <vishwanath@gluster.com>2012-03-10 15:51:22 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-11 23:00:05 -0700
commit7157a2cf42c4cf7c2ec2805e0732b49ebabd975e (patch)
treed8f625a83bf2821dbd0a06fdd2f1180df18841b7 /xlators/storage
parentb596986ca43b2acd83debe3c77607cc4e8ff1dc6 (diff)
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 <vishwanath@gluster.com> Reviewed-on: http://review.gluster.com/2910 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/storage')
-rw-r--r--xlators/storage/posix/src/posix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 22a9574dc..f699e4c4d 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;
}