diff options
-rw-r--r-- | cpukit/libfs/src/nfsclient/src/nfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/libfs/src/nfsclient/src/nfs.c b/cpukit/libfs/src/nfsclient/src/nfs.c index a15f60f1bd..3983e77b9f 100644 --- a/cpukit/libfs/src/nfsclient/src/nfs.c +++ b/cpukit/libfs/src/nfsclient/src/nfs.c @@ -923,6 +923,7 @@ NfsNode rval = nfsNodeCreate(node->nfs, 0); if (node->str) { rval->args.name = rval->str = strdup(node->str); if (!rval->str) { + errno = ENOMEM; nfsNodeDestroy(rval); return 0; } @@ -1393,6 +1394,11 @@ unsigned long niu,siu; /* clone the node */ if ( !node ) { /* nodeClone sets errno */ + pathloc->node_access = 0; + if ( ! (e = errno) ) { + /* if we have no node, e must not be zero! */ + e = ENOMEM; + } goto cleanup; } |