diff options
-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, 0 insertions, 67 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 deleted file mode 100644 index 03fa6216..00000000 --- a/debian/patches/fix-rename0001-libdiskfs-fix-renaming-of-directories.patch +++ /dev/null @@ -1,35 +0,0 @@ -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 deleted file mode 100644 index c9bfc566..00000000 --- a/debian/patches/fix-rename0002-fatfs-fix-error-handling.patch +++ /dev/null @@ -1,30 +0,0 @@ -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 0e0537e6..dbf6a3d9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -63,5 +63,3 @@ 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 |