diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2012-10-10 15:18:06 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-10-10 19:13:38 -0700 |
commit | 46e20cce6ad6454074d4a55da5bebaad6152b429 (patch) | |
tree | 3681977915ad3cbb2c89d548865b64a34188e23a /xlators/storage/posix/src/posix.c | |
parent | 1d814dcae0f06e75527017647b605f585125aa61 (diff) |
storage/posix: return -1 if lstat call returns non zero value apart from -1
* If lstat() call in posix_{pstat, istat} returns non zero return value
other than -1, then treat lstat() call to have been failed and return -1
itself. This might happen if there is some bug in the backend filesystem.
Change-Id: Ie23787f6c838f14f92edadad71b83471e3d22289
BUG: 864401
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.org/4056
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
0 files changed, 0 insertions, 0 deletions