summaryrefslogtreecommitdiff
path: root/debian/patches/xattr0004-set-translator-flag-on-reading-typo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/xattr0004-set-translator-flag-on-reading-typo.patch')
-rw-r--r--debian/patches/xattr0004-set-translator-flag-on-reading-typo.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/xattr0004-set-translator-flag-on-reading-typo.patch b/debian/patches/xattr0004-set-translator-flag-on-reading-typo.patch
new file mode 100644
index 00000000..14b6bb44
--- /dev/null
+++ b/debian/patches/xattr0004-set-translator-flag-on-reading-typo.patch
@@ -0,0 +1,42 @@
+From cbc7438ca1f23b16d01c5dade7caf768be0e7c5a Mon Sep 17 00:00:00 2001
+From: Justus Winter <justus@gnupg.org>
+Date: Sun, 24 Jul 2016 19:40:37 +0200
+Subject: [PATCH hurd 4/6] set translator flag on reading; typo
+
+---
+ ext2fs/inode.c | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/ext2fs/inode.c b/ext2fs/inode.c
+index fd28295..f1c3356 100644
+--- a/ext2fs/inode.c
++++ b/ext2fs/inode.c
+@@ -167,8 +167,16 @@ diskfs_user_read_node (struct node *np, struct lookup_context *ctx)
+ {
+ st->st_mode = di->i_mode | (di->i_mode_high << 16);
+ st->st_mode &= ~S_ITRANS;
++
+ if (di->i_translator)
+ st->st_mode |= S_IPTRANS;
++ else
++ {
++ size_t datalen;
++ err = ext2_get_xattr (np, "gnu.translator", NULL, &datalen);
++ if (! err && datalen > 0)
++ st->st_mode |= S_IPTRANS;
++ }
+
+ st->st_uid = di->i_uid | (di->i_uid_high << 16);
+ st->st_gid = di->i_gid | (di->i_gid_high << 16);
+@@ -623,7 +631,7 @@ diskfs_get_translator (struct node *np, char **namep, unsigned *namelen)
+
+ if (blkno)
+ {
+- ext2_warning("This is a old translotor record, please update it");
++ ext2_warning("This is an old translator record, please update it");
+
+ transloc = disk_cache_block_ref (blkno);
+ datalen = ((unsigned char *)transloc)[0] +
+--
+2.8.1
+