summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-05-20 20:01:38 +0000
committerThomas Bushnell <thomas@gnu.org>1997-05-20 20:01:38 +0000
commitda08c2d194c9e806301008ffa172e2861da7bcfe (patch)
treebafad966c00e46ade5d844798051c2eea01298d9
parent3b8746ce57006e5c7381619f4fb746b5540b76c8 (diff)
*** empty log message ***
-rw-r--r--nfs/ops.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index 4988b13e..0108b295 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -644,8 +644,8 @@ netfs_attempt_mkdir (struct iouser *cred, struct node *np,
p = process_returned_stat (newnp, p, 1);
/* Did we set the owner correctly? If not, try, but ignore failures. */
- if (!netfs_validate_stat (newnp, -1) && newnp.nn_stat.st_uid != owner)
- netfs_attempt_chown (-1, newnp, owner, newnp.nn_stat.st_gid);
+ if (!netfs_validate_stat (newnp, -1) && newnp->nn_stat.st_uid != owner)
+ netfs_attempt_chown (-1, newnp, owner, newnp->nn_stat.st_gid);
/* We don't actually return this. */
netfs_nput (newnp);
@@ -1042,8 +1042,9 @@ netfs_attempt_create_file (struct iouser *cred, struct node *np,
mutex_lock (&(*newnp)->lock);
}
- if (!netfs_validate_stat (*newnp, -1) && newnp.nn_stat.st_uid != owner)
- netfs_attempt_chown (-1, newnp, owner, newnp.nn_stat.st_gid);
+ if (!netfs_validate_stat (*newnp, -1)
+ && (*newnp)->nn_stat.st_uid != owner)
+ netfs_attempt_chown (-1, newnp, owner, (*newnp)->nn_stat.st_gid);
}
else
*newnp = 0;