commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 26/98: Make sure created netfs nodes have stat validated


From: Samuel Thibault
Subject: [hurd] 26/98: Make sure created netfs nodes have stat validated
Date: Tue, 14 Jan 2014 01:59:59 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 4d6828ca04636d331f9a050f05b576e489022a1f
Author: Samuel Thibault <address@hidden>
Date:   Tue Nov 19 01:43:11 2013 +0100

    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.
---
 trans/fakeroot.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 8373be3..1766cc2 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]