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/patches/fix-rename0002-fatfs-fix-error-handling.patch | |
parent | 96fc87e036e34e213eacf0e5d29409ddcc505a49 (diff) |
add patch series
Diffstat (limited to 'debian/patches/fix-rename0002-fatfs-fix-error-handling.patch')
-rw-r--r-- | debian/patches/fix-rename0002-fatfs-fix-error-handling.patch | 30 |
1 files changed, 30 insertions, 0 deletions
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 + |