patch-debugfs_dump_c 892 B

123456789101112131415161718192021222324252627282930
  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;
  17. if (fd != -1)
  18. @@ -90,11 +88,6 @@ static void fix_perms(const char *cmd, c
  19. #endif
  20. if (i == -1)
  21. com_err(cmd, errno, "while changing ownership of %s", name);
  22. -
  23. - ut.actime = inode->i_atime;
  24. - ut.modtime = inode->i_mtime;
  25. - if (utime(name, &ut) == -1)
  26. - com_err(cmd, errno, "while setting times of %s", name);
  27. }
  28. static void dump_file(const char *cmdname, ext2_ino_t ino, int fd,