libnfs: Give correct access() results for directories
authorRoss Lagerwall <rosslagerwall@gmail.com>
Sun, 14 Sep 2014 14:38:57 +0000 (15:38 +0100)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Sun, 14 Sep 2014 14:38:57 +0000 (15:38 +0100)
commitc50173cf0d1fbaafcbf444d0b980de72b83373c9
treea3b66f3336103de1a508572933af0ee491d145a9
parent5fe97d108860c35e28f1d01e1766e6a2cef6d548
libnfs: Give correct access() results for directories

Map ACCESS3_{MODIFY,EXTEND,DELETE} to W_OK and ACCESS3_{LOOKUP,EXECUTE}
to X_OK so that nfs_access() gives sensible results for directories.

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
lib/libnfs.c