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/ChangeLog | 4 ++++ cpukit/libfs/src/nfsclient/src/nfs.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 9cbde446ce..bfd08c55f0 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2011-08-01 Sebastian Huber + + * libfs/src/nfsclient/src/nfs.c: Fixed creation of directories. + 2011-07-31 Joel Sherrill PR 1855/cpukit 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