diff options
author | Thomas Bushnell <thomas@gnu.org> | 1997-05-20 19:59:38 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1997-05-20 19:59:38 +0000 |
commit | 3b8746ce57006e5c7381619f4fb746b5540b76c8 (patch) | |
tree | a9928e71dfd75268e6ef82075d185bd2bc4010ac /nfs | |
parent | f44d3a4bc1d086012171cf68d4e198c7b4f184f8 (diff) |
*** empty log message ***
Diffstat (limited to 'nfs')
-rw-r--r-- | nfs/ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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, cred) && newnp.nn_stat.st_uid != owner) - netfs_attempt_chown (cred, 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,8 @@ netfs_attempt_create_file (struct iouser *cred, struct node *np, mutex_lock (&(*newnp)->lock); } - if (!netfs_validate_stat (*newnp, cred) && newnp.nn_stat.st_uid != owner) - netfs_attempt_chown (cred, 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; |