package/e2fsprogs: update to 1.42.12, add subpackages for static tune2fs and e2fsck
[openadk.git] / package / e2fsprogs / patches / patch-debugfs_dump_c
blobc244d28b8fa9ef571195160109e702c7daf887c8
1 --- e2fsprogs-1.42.12.orig/debugfs/dump.c       2014-08-05 00:58:23.000000000 +0200
2 +++ e2fsprogs-1.42.12/debugfs/dump.c    2015-02-24 13:49:24.673532944 +0100
3 @@ -22,7 +22,6 @@
4  #include <sys/types.h>
5  #include <sys/stat.h>
6  #include <fcntl.h>
7 -#include <utime.h>
8  #ifdef HAVE_GETOPT_H
9  #include <getopt.h>
10  #else
11 @@ -70,7 +69,6 @@ static mode_t mode_xlate(__u16 lmode)
12  static void fix_perms(const char *cmd, const struct ext2_inode *inode,
13                       int fd, const char *name)
14  {
15 -       struct utimbuf ut;
16         int i;
18         if (fd != -1)
19 @@ -90,11 +88,6 @@ static void fix_perms(const char *cmd, c
20  #endif
21         if (i == -1)
22                 com_err(cmd, errno, "while changing ownership of %s", name);
24 -       ut.actime = inode->i_atime;
25 -       ut.modtime = inode->i_mtime;
26 -       if (utime(name, &ut) == -1)
27 -               com_err(cmd, errno, "while setting times of %s", name);
28  }
30  static void dump_file(const char *cmdname, ext2_ino_t ino, int fd,