commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 31/64: libdiskfs: fix fabrication of protid


From: Samuel Thibault
Subject: [hurd] 31/64: libdiskfs: fix fabrication of protid
Date: Wed, 10 Dec 2014 15:17:05 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 9cd99ff80c3c129ed137e0d22b7e438f292e5e8f
Author: Justus Winter <address@hidden>
Date:   Sun Nov 23 20:13:30 2014 +0100

    libdiskfs: fix fabrication of protid
    
    * libdiskfs/dir-init.c (diskfs_init_dir): Fix fabrication of protid.
---
 libdiskfs/dir-init.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libdiskfs/dir-init.c b/libdiskfs/dir-init.c
index 4efded0..8301ca1 100644
--- a/libdiskfs/dir-init.c
+++ b/libdiskfs/dir-init.c
@@ -33,7 +33,8 @@ diskfs_init_dir (struct node *dp, struct node *pdp, struct 
protid *cred)
   static uid_t zero = 0;
   static struct idvec vec = {&zero, 1, 1};
   static struct iouser user = {&vec, &vec, 0};
-  struct protid lookupcred = {{0, 0, 0, 0}, &user, cred->po, 0, 0};
+  struct protid lookupcred = {{ .refcounts = { .references = {1, 0}}},
+                             &user, cred->po, 0, 0};
 
   /* New links */
   if (pdp->dn_stat.st_nlink == diskfs_link_max - 1)

-- 
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]