summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg/0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch
blob: 35c0c246f672d3a39a7a5ce47416b5638c3cc605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 80ad29d22f8ca4033a6a79a726580fee17bdade9 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Wed, 26 Aug 2015 16:27:45 +0300
Subject: [PATCH] The lutimes function doesn't work properly for all systems.

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>

Upstream-Status: Inappropriate [embedded specific]
---
 src/main/archives.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/archives.c b/src/main/archives.c
index 7e399f922..ec3b6878f 100644
--- a/src/main/archives.c
+++ b/src/main/archives.c
@@ -491,8 +491,9 @@ tarobject_set_mtime(struct tar_entry *te, const char *path)
 
   if (te->type == TAR_FILETYPE_SYMLINK) {
 #ifdef HAVE_LUTIMES
-    if (lutimes(path, tv) && errno != ENOSYS)
+/*    if (lutimes(path, tv) && errno != ENOSYS)
       ohshite(_("error setting timestamps of '%.255s'"), path);
+*/
 #endif
   } else {
     if (utimes(path, tv))