summaryrefslogtreecommitdiff
path: root/package/e2fsprogs/patches/patch-debugfs_dump_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 23:00:18 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 23:00:18 +0100
commit5bfdfbcee97c930c3c14dc3745089ac28e76ca41 (patch)
tree723a2310434afd85f68b3437e17917fcc6c5d623 /package/e2fsprogs/patches/patch-debugfs_dump_c
parent16d7827ef1aec4aab89033ed1d47ca82fa3a3ba7 (diff)
parent58d31896056e604185acf3606b99257cea519dd1 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/e2fsprogs/patches/patch-debugfs_dump_c')
-rw-r--r--package/e2fsprogs/patches/patch-debugfs_dump_c30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/e2fsprogs/patches/patch-debugfs_dump_c b/package/e2fsprogs/patches/patch-debugfs_dump_c
new file mode 100644
index 000000000..ad28d3c02
--- /dev/null
+++ b/package/e2fsprogs/patches/patch-debugfs_dump_c
@@ -0,0 +1,30 @@
+--- e2fsprogs-1.41.14.orig/debugfs/dump.c 2009-08-13 03:39:57.000000000 +0200
++++ e2fsprogs-1.41.14/debugfs/dump.c 2010-12-25 22:30:02.000000000 +0100
+@@ -19,7 +19,6 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+-#include <utime.h>
+ #ifdef HAVE_GETOPT_H
+ #include <getopt.h>
+ #else
+@@ -67,7 +66,6 @@ static mode_t mode_xlate(__u16 lmode)
+ static void fix_perms(const char *cmd, const struct ext2_inode *inode,
+ int fd, const char *name)
+ {
+- struct utimbuf ut;
+ int i;
+
+ if (fd != -1)
+@@ -90,11 +88,6 @@ static void fix_perms(const char *cmd, c
+
+ if (fd != -1)
+ close(fd);
+-
+- ut.actime = inode->i_atime;
+- ut.modtime = inode->i_mtime;
+- if (utime(name, &ut) == -1)
+- com_err(cmd, errno, "while setting times of %s", name);
+ }
+
+ static void dump_file(const char *cmdname, ext2_ino_t ino, int fd,