diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-05-19 19:22:02 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-05-19 19:22:02 +0200 |
commit | 2a7a90fd5f5a3f2bd44b91e80f5c98145c9b945c (patch) | |
tree | 353f4c58b6ba87ebe5c529d1a452f6c846a6d5d2 /debian | |
parent | 96fc87e036e34e213eacf0e5d29409ddcc505a49 (diff) |
add patch series
Diffstat (limited to 'debian')
-rw-r--r-- | debian/patches/fix-rename0001-libdiskfs-fix-renaming-of-directories.patch | 35 | ||||
-rw-r--r-- | debian/patches/fix-rename0002-fatfs-fix-error-handling.patch | 30 | ||||
-rw-r--r-- | debian/patches/series | 2 |
3 files changed, 67 insertions, 0 deletions
diff --git a/debian/patches/fix-rename0001-libdiskfs-fix-renaming-of-directories.patch b/debian/patches/fix-rename0001-libdiskfs-fix-renaming-of-directories.patch new file mode 100644 index 00000000..03fa6216 --- /dev/null +++ b/debian/patches/fix-rename0001-libdiskfs-fix-renaming-of-directories.patch @@ -0,0 +1,35 @@ +From e840329de670757720cec729556b9b1f7d655ab5 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Tue, 19 May 2015 18:12:20 +0200 +Subject: [PATCH hurd 1/2] libdiskfs: fix renaming of directories + +Previously, file permissions and ownership of the target directory +were ignored when renaming a directory: + + % mkdir a b + % chmod 555 a + % mv b a + % ls a + b + +* libdiskfs/dir-renamed.c (diskfs_rename_dir): Fix error handling. +--- + libdiskfs/dir-renamed.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c +index 9e37e23..a4878f3 100644 +--- a/libdiskfs/dir-renamed.c ++++ b/libdiskfs/dir-renamed.c +@@ -94,6 +94,8 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, const char *fromname, + ds = buf; + err = diskfs_lookup (tdp, toname, RENAME, &tnp, ds, tocred); + assert (err != EAGAIN); /* <-> assert (TONAME != "..") */ ++ if (err && err != ENOENT) ++ goto out; + + if (tnp == fnp) + { +-- +2.1.4 + diff --git a/debian/patches/fix-rename0002-fatfs-fix-error-handling.patch b/debian/patches/fix-rename0002-fatfs-fix-error-handling.patch new file mode 100644 index 00000000..c9bfc566 --- /dev/null +++ b/debian/patches/fix-rename0002-fatfs-fix-error-handling.patch @@ -0,0 +1,30 @@ +From 3ffb892a5db5ad64b87261fa01478401806894cf Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Tue, 19 May 2015 18:52:58 +0200 +Subject: [PATCH hurd 2/2] fatfs: fix error handling + +* fatfs/dir.c (diskfs_dirrewrite_hard): Fix error handling. +--- + fatfs/dir.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/fatfs/dir.c b/fatfs/dir.c +index 9eea74c..66c95d2 100644 +--- a/fatfs/dir.c ++++ b/fatfs/dir.c +@@ -728,9 +728,10 @@ diskfs_dirrewrite_hard (struct node *dp, struct node *np, struct dirstat *ds) + entry_key.dir_inode = dp->cache_id; + entry_key.dir_offset = ((int) ds->entry) - ((int) ds->mapbuf); + err = vi_rlookup (entry_key, &inode, &vinode, 0); +- + assert (err != EINVAL); +- ++ if (err) ++ return err; ++ + /* Lookup the node, we already have a reference. */ + oldnp = diskfs_cached_ifind (inode); + +-- +2.1.4 + diff --git a/debian/patches/series b/debian/patches/series index dbf6a3d9..0e0537e6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -63,3 +63,5 @@ bootshell0007-XXX-bootshell.patch bootshell0008-XXX-proc-fix-build.patch bootshell0009-fixup-more-error-handling.patch bootshell0010-pull-code-from-livecd-XXX-document.patch +fix-rename0001-libdiskfs-fix-renaming-of-directories.patch +fix-rename0002-fatfs-fix-error-handling.patch |