summaryrefslogtreecommitdiff
path: root/pkg/openbsd/patch/0037-pax-Use-POSIX-struct-stat-fields-for-high-resolution.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2025-04-29 16:35:44 -0700
committerMichael Forney <mforney@mforney.org>2025-04-29 18:08:11 -0700
commit06624ed7867c902e0ca44b5ca381e9d4dc157e14 (patch)
treeb599a63619db2f17915395b1b7c01025a6181159 /pkg/openbsd/patch/0037-pax-Use-POSIX-struct-stat-fields-for-high-resolution.patch
parentf14538ac33402854509d46e1a7bdaae091c2fb80 (diff)
openbsd: Update to 7.7
Diffstat (limited to 'pkg/openbsd/patch/0037-pax-Use-POSIX-struct-stat-fields-for-high-resolution.patch')
-rw-r--r--pkg/openbsd/patch/0037-pax-Use-POSIX-struct-stat-fields-for-high-resolution.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/pkg/openbsd/patch/0037-pax-Use-POSIX-struct-stat-fields-for-high-resolution.patch b/pkg/openbsd/patch/0037-pax-Use-POSIX-struct-stat-fields-for-high-resolution.patch
deleted file mode 100644
index 18d2ca23..00000000
--- a/pkg/openbsd/patch/0037-pax-Use-POSIX-struct-stat-fields-for-high-resolution.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 82646d38665109ec5f0753ba384da94d529bbbe9 Mon Sep 17 00:00:00 2001
-From: Michael Forney <mforney@mforney.org>
-Date: Wed, 27 Apr 2022 19:57:54 -0700
-Subject: [PATCH] pax: Use POSIX struct stat fields for high resolution
- timestamps
-
----
- bin/pax/tar.c | 15 +++++----------
- 1 file changed, 5 insertions(+), 10 deletions(-)
-
-diff --git a/bin/pax/tar.c b/bin/pax/tar.c
-index 1f4012123c3..7ede7938c3d 100644
---- a/bin/pax/tar.c
-+++ b/bin/pax/tar.c
-@@ -417,8 +417,7 @@ tar_rd(ARCHD *arcn, char *buf)
- arcn->sb.st_mtime = INT_MAX; /* XXX 2038 */
- else
- arcn->sb.st_mtime = val;
-- arcn->sb.st_ctime = arcn->sb.st_atime = arcn->sb.st_mtime;
-- arcn->sb.st_ctimensec = arcn->sb.st_atimensec = arcn->sb.st_mtimensec;
-+ arcn->sb.st_ctim = arcn->sb.st_atim = arcn->sb.st_mtim;
-
- /*
- * have to look at the last character, it may be a '/' and that is used
-@@ -795,14 +794,10 @@ reset:
- else
- arcn->sb.st_mtime = val;
- }
-- if (arcn->sb.st_ctime == 0) {
-- arcn->sb.st_ctime = arcn->sb.st_mtime;
-- arcn->sb.st_ctimensec = arcn->sb.st_mtimensec;
-- }
-- if (arcn->sb.st_atime == 0) {
-- arcn->sb.st_atime = arcn->sb.st_mtime;
-- arcn->sb.st_atimensec = arcn->sb.st_mtimensec;
-- }
-+ if (arcn->sb.st_ctime == 0)
-+ arcn->sb.st_ctim = arcn->sb.st_mtim;
-+ if (arcn->sb.st_atime == 0)
-+ arcn->sb.st_atim = arcn->sb.st_mtim;
-
- /*
- * If we can find the ascii names for gname and uname in the password
---
-2.35.1
-