patch-debugfs_dump_c 837 B

123456789101112131415161718192021222324252627282930
  1. --- e2fsprogs-1.41.14.orig/debugfs/dump.c 2009-08-13 03:39:57.000000000 +0200
  2. +++ e2fsprogs-1.41.14/debugfs/dump.c 2010-12-25 22:30:02.000000000 +0100
  3. @@ -19,7 +19,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. @@ -67,7 +66,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. 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,