diff options
| author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-11-23 23:03:30 +0100 |
|---|---|---|
| committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-11-23 23:03:30 +0100 |
| commit | 4e042fdef179d55b2b61800d02e4e32aceaad361 (patch) | |
| tree | ddd8be729ce04d871a33bf7752432af9165de6c7 /debian/patches/0001-libdiskfs-fix-fabrication-of-protid.patch | |
| parent | 281d7b6a450ac432b0aa16b23d31e633b73bc53a (diff) | |
add patch series
Diffstat (limited to 'debian/patches/0001-libdiskfs-fix-fabrication-of-protid.patch')
| -rw-r--r-- | debian/patches/0001-libdiskfs-fix-fabrication-of-protid.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/0001-libdiskfs-fix-fabrication-of-protid.patch b/debian/patches/0001-libdiskfs-fix-fabrication-of-protid.patch new file mode 100644 index 00000000..70cab5c8 --- /dev/null +++ b/debian/patches/0001-libdiskfs-fix-fabrication-of-protid.patch @@ -0,0 +1,27 @@ +From fd126fc6301fcb47bba4cdf62fa8cfccfba5fdb1 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Sun, 23 Nov 2014 20:13:30 +0100 +Subject: [PATCH hurd 01/29] 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) +-- +2.1.3 + |
