From 363aacef6d42a0de47f47aff73ef9328bc7bb1d8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 1 Aug 2011 07:27:25 +0000 Subject: 2011-08-01 Sebastian Huber * libfs/src/nfsclient/src/nfs.c: Fixed creation of directories. --- cpukit/libfs/src/nfsclient/src/nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libfs') diff --git a/cpukit/libfs/src/nfsclient/src/nfs.c b/cpukit/libfs/src/nfsclient/src/nfs.c index 23b05bb666..aaf0fd0fae 100644 --- a/cpukit/libfs/src/nfsclient/src/nfs.c +++ b/cpukit/libfs/src/nfsclient/src/nfs.c @@ -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)) ) { -- cgit v1.2.3