| 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
|
|
|