* libfs/src/nfsclient/src/nfs.c: Fixed creation of directories.
This commit is contained in:
Sebastian Huber
2011-08-01 07:27:25 +00:00
parent 3ca8c6bc11
commit 363aacef6d
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2011-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/nfsclient/src/nfs.c: Fixed creation of directories.
2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1855/cpukit

View File

@@ -2137,7 +2137,7 @@ mode_t type = S_IFMT & mode;
SERP_ARGS(node).createarg.attributes.mtime.useconds = now.tv_usec;
if ( nfscall( node->nfs->server,
NFSPROC_CREATE,
(type == S_IFDIR) ? NFSPROC_MKDIR : NFSPROC_CREATE,
(xdrproc_t)xdr_createargs, &SERP_FILE(node),
(xdrproc_t)xdr_diropres, &res)
|| (NFS_OK != (errno = res.status)) ) {