Revert "acp: Ensure dst mtime always greater or equal to src mtime"
This reverts commit a67bc11058
.
Change-Id: Iba646152e62d61f0e4e64541748e7821a7dd3a9c
This commit is contained in:
@@ -151,12 +151,6 @@ static int setPermissions(const char* dst, const struct stat* pSrcStat, unsigned
|
|||||||
*/
|
*/
|
||||||
ut.actime = pSrcStat->st_atime;
|
ut.actime = pSrcStat->st_atime;
|
||||||
ut.modtime = pSrcStat->st_mtime;
|
ut.modtime = pSrcStat->st_mtime;
|
||||||
#ifdef MACOSX_RSRC
|
|
||||||
if (pSrcStat->st_mtimespec.tv_nsec > 0)
|
|
||||||
#else
|
|
||||||
if (pSrcStat->st_mtim.tv_nsec > 0)
|
|
||||||
#endif
|
|
||||||
ut.modtime += 1;
|
|
||||||
if (utime(dst, &ut) != 0) {
|
if (utime(dst, &ut) != 0) {
|
||||||
DBUG(("--- unable to set timestamps on '%s': %s\n",
|
DBUG(("--- unable to set timestamps on '%s': %s\n",
|
||||||
dst, strerror(errno)));
|
dst, strerror(errno)));
|
||||||
|
Reference in New Issue
Block a user