blob: bbd5aba418260bf968a07670caa7cd1ec7656d00 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From adb6bfd0feeceaf030df0debe3343d7f73e708a0 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 26 Aug 2015 16:27:45 +0300
4Subject: [PATCH 4/5] The lutimes function doesn't work properly for all
5 systems.
6
7Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
8
9Upstream-Status: Inappropriate [embedded specific]
10---
Andrew Geissler9aee5002022-03-30 16:27:02 +000011 src/main/archives.c | 3 ++-
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012 1 file changed, 2 insertions(+), 1 deletion(-)
13
Andrew Geissler9aee5002022-03-30 16:27:02 +000014diff --git a/src/main/archives.c b/src/main/archives.c
15index 92340b9..7a55c27 100644
16--- a/src/main/archives.c
17+++ b/src/main/archives.c
18@@ -490,8 +490,9 @@ tarobject_set_mtime(struct tar_entry *te, const char *path)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
20 if (te->type == TAR_FILETYPE_SYMLINK) {
21 #ifdef HAVE_LUTIMES
22- if (lutimes(path, tv) && errno != ENOSYS)
23+/* if (lutimes(path, tv) && errno != ENOSYS)
24 ohshite(_("error setting timestamps of '%.255s'"), path);
25+*/
26 #endif
27 } else {
28 if (utimes(path, tv))
29--
Andrew Geissler9aee5002022-03-30 16:27:02 +0000302.25.1
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031