Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From adb6bfd0feeceaf030df0debe3343d7f73e708a0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Wed, 26 Aug 2015 16:27:45 +0300 |
| 4 | Subject: [PATCH 4/5] The lutimes function doesn't work properly for all |
| 5 | systems. |
| 6 | |
| 7 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> |
| 8 | |
| 9 | Upstream-Status: Inappropriate [embedded specific] |
| 10 | --- |
| 11 | src/archives.c | 3 ++- |
| 12 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/src/archives.c b/src/archives.c |
| 15 | index bff5f14..b711013 100644 |
| 16 | --- a/src/archives.c |
| 17 | +++ b/src/archives.c |
| 18 | @@ -449,8 +449,9 @@ tarobject_set_mtime(struct tar_entry *te, const char *path) |
| 19 | |
| 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 | -- |
| 30 | 2.1.4 |
| 31 | |