summaryrefslogtreecommitdiff
path: root/debian/patches/utime.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/utime.diff')
-rw-r--r--debian/patches/utime.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/utime.diff b/debian/patches/utime.diff
new file mode 100644
index 00000000..4d3f6d8f
--- /dev/null
+++ b/debian/patches/utime.diff
@@ -0,0 +1,25 @@
+Subject: utime fix
+
+This was apparently fixed upstream already.
+
+Index: glibc-2.31/sysdeps/unix/sysv/linux/utime.c
+===================================================================
+--- glibc-2.31.orig/sysdeps/unix/sysv/linux/utime.c
++++ glibc-2.31/sysdeps/unix/sysv/linux/utime.c
+@@ -18,6 +18,7 @@
+
+ #include <utime.h>
+ #include <time.h>
++#include <fcntl.h>
+
+ int
+ __utime64 (const char *file, const struct __utimbuf64 *times)
+@@ -32,7 +33,7 @@ __utime64 (const char *file, const struc
+ ts64[1].tv_nsec = 0LL;
+ }
+
+- return __utimensat64_helper (0, file, times ? ts64 : NULL, 0);
++ return __utimensat64_helper (AT_FDCWD, file, times ? ts64 : NULL, 0);
+ }
+
+ #if __TIMESIZE != 64