posix: Ensure ENOTEMPTY return on rmdir
posix: Ensure ENOTEMPTY return on rmdir

Since we added an extra step after rmdir, i.e.
the lstat on parent dir as part of the NFS-friendly
changes, the successful return from postparent lstat
clobbers the -1 error return from rmdir.

This prevents this particularly ENOTEMPTY error from
being propagated to higher translators.

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 145 (NFSv3 related additions to 2.1 task list)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=145

Kaushikbv/Gluster,Kaushikbv/Gluster,Kaushikbv/Gluster