patch-debugfs_dump_c 835 B

123456789101112131415161718192021222324252627282930
  1. --- e2fsprogs-1.42.4.orig/debugfs/dump.c 2012-05-29 03:29:43.000000000 +0200
  2. +++ e2fsprogs-1.42.4/debugfs/dump.c 2012-07-26 18:48:09.000000000 +0200
  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. @@ -93,11 +91,6 @@ static void fix_perms(const char *cmd, c
  19. if (fd != -1)
  20. close(fd);
  21. -
  22. - ut.actime = inode->i_atime;
  23. - ut.modtime = inode->i_mtime;
  24. - if (utime(name, &ut) == -1)
  25. - com_err(cmd, errno, "while setting times of %s", name);
  26. }
  27. static void dump_file(const char *cmdname, ext2_ino_t ino, int fd,