summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-19 01:43:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-19 01:43:11 +0100
commit4d6828ca04636d331f9a050f05b576e489022a1f (patch)
tree0d19477fe7ffca8d506469f72d321d12557cad07
parentf5ba2dee8d589639de0e0df315322e5b312c45c5 (diff)
Make sure created netfs nodes have stat validated
Just like it always is in libnetfs' normal netfs_S_dir_lookup. * trans/fakeroot.c (netfs_S_dir_lookup): Call netfs_validate_stat after calling new_node.
-rw-r--r--trans/fakeroot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 8373be3a..1766cc2a 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -314,7 +314,11 @@ netfs_S_dir_lookup (struct protid *diruser,
pthread_mutex_unlock (&idport_ihash_lock);
}
else
- err = new_node (file, idport, 1, flags, &np);
+ {
+ err = new_node (file, idport, 1, flags, &np);
+ if (!err)
+ err = netfs_validate_stat (np, diruser->user);
+ }
}
}
if (err)