mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.9 KiB

  1. --- ./lib/utimens.h.orig 2007-05-31 08:26:00.000000000 +0200
  2. +++ ./lib/utimens.h 2007-05-31 08:26:16.000000000 +0200
  3. @@ -1,3 +1,3 @@
  4. #include <time.h>
  5. -int futimens (int, char const *, struct timespec const [2]);
  6. +int futimens_local (int, char const *, struct timespec const [2]);
  7. int utimens (char const *, struct timespec const [2]);
  8. --- ./lib/utimens.c.orig 2007-05-31 08:26:00.000000000 +0200
  9. +++ ./lib/utimens.c 2007-05-31 08:26:23.000000000 +0200
  10. @@ -75,7 +75,7 @@
  11. Return 0 on success, -1 (setting errno) on failure. */
  12. int
  13. -futimens (int fd ATTRIBUTE_UNUSED,
  14. +futimens_local (int fd ATTRIBUTE_UNUSED,
  15. char const *file, struct timespec const timespec[2])
  16. {
  17. /* Some Linux-based NFS clients are buggy, and mishandle time stamps
  18. @@ -185,5 +185,5 @@
  19. int
  20. utimens (char const *file, struct timespec const timespec[2])
  21. {
  22. - return futimens (-1, file, timespec);
  23. + return futimens_local (-1, file, timespec);
  24. }
  25. --- ./src/touch.c.orig 2007-05-31 08:26:00.000000000 +0200
  26. +++ ./src/touch.c 2007-05-31 08:26:29.000000000 +0200
  27. @@ -167,7 +167,7 @@
  28. if (amtime_now)
  29. {
  30. - /* Pass NULL to futimens so it will not fail if we have
  31. + /* Pass NULL to futimens_local so it will not fail if we have
  32. write access to the file, but don't own it. */
  33. t = NULL;
  34. }
  35. @@ -182,7 +182,7 @@
  36. t = timespec;
  37. }
  38. - ok = (futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
  39. + ok = (futimens_local (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
  40. if (fd == STDIN_FILENO)
  41. {
  42. --- ./src/copy.c.orig 2007-05-31 08:26:00.000000000 +0200
  43. +++ ./src/copy.c 2007-05-31 08:26:36.000000000 +0200
  44. @@ -518,7 +518,7 @@
  45. timespec[0] = get_stat_atime (src_sb);
  46. timespec[1] = get_stat_mtime (src_sb);
  47. - if (futimens (dest_desc, dst_name, timespec) != 0)
  48. + if (futimens_local (dest_desc, dst_name, timespec) != 0)
  49. {
  50. error (0, errno, _("preserving times for %s"), quote (dst_name));
  51. if (x->require_preserve)