Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: ports/tar/nacl.patch

Issue 550423003: Ignore utime errors for until we restore old behavior for tar + libtar. (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/libtar/nacl.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/tar/nacl.patch
diff --git a/ports/tar/nacl.patch b/ports/tar/nacl.patch
index 0d6bd6de0adf02067fed8963a7e284d8a0a40987..010d1af55edf0eb689979a17d83b96047571c127 100644
--- a/ports/tar/nacl.patch
+++ b/ports/tar/nacl.patch
@@ -27,6 +27,33 @@ index 86de4cc..64eeb01 100644
LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
LIB_SETSOCKOPT = @LIB_SETSOCKOPT@
LTLIBICONV = @LTLIBICONV@
+diff --git a/src/extract.c b/src/extract.c
+index f348b82..e536c05 100644
+--- a/src/extract.c
++++ b/src/extract.c
+@@ -255,6 +255,14 @@ set_stat (char const *file_name,
+
+ utimbuf.modtime = stat_info->st_mtime;
+
++ /* TODO(bradnelson): Remove this when all mounts handle utime. */
++#if defined(__native_client__)
++ if (utime (file_name, &utimbuf) < 0) {
++ if (errno != ENOSYS && errno != EINVAL) {
++ utime_error (file_name);
++ }
++ }
++#else
+ if (utime (file_name, &utimbuf) < 0)
+ utime_error (file_name);
+ else
+@@ -262,6 +270,7 @@ set_stat (char const *file_name,
+ check_time (file_name, utimbuf.actime);
+ check_time (file_name, utimbuf.modtime);
+ }
++#endif
+ }
+
+ /* Some systems allow non-root users to give files away. Once this
diff --git a/src/tar.c b/src/tar.c
index 31d7d30..eec331e 100644
--- a/src/tar.c
« no previous file with comments | « ports/libtar/nacl.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698