diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2016-08-18 01:00:51 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2016-08-18 01:00:51 +0000 |
commit | ac7e5faf87feb870fa8e835e0d1247871c34c42f (patch) | |
tree | d371a398455e31c5a49c657356e1b9bc1de757fb /sysutils/freefilesync/files/patch-zen_file__access.cpp | |
parent | Register recent gnupg1/libgcrypt vuln. (diff) |
Fix BROKEN for < 10.3. While here drop maintainership.
PR: 211943
Submitted by: amdmi3
Notes
Notes:
svn path=/head/; revision=420377
Diffstat (limited to 'sysutils/freefilesync/files/patch-zen_file__access.cpp')
-rw-r--r-- | sysutils/freefilesync/files/patch-zen_file__access.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sysutils/freefilesync/files/patch-zen_file__access.cpp b/sysutils/freefilesync/files/patch-zen_file__access.cpp deleted file mode 100644 index c642df738d24..000000000000 --- a/sysutils/freefilesync/files/patch-zen_file__access.cpp +++ /dev/null @@ -1,26 +0,0 @@ ---- ../../zen/file_access.cpp.orig 2016-01-11 12:13:10 UTC -+++ ../../zen/file_access.cpp -@@ -877,6 +877,15 @@ void setFileTimeRaw(const Zstring& fileP - //https://sourceforge.net/p/freefilesync/discussion/open-discussion/thread/218564cf/ - newTimes[1] = modTime; //modification time - -+#if defined(__FreeBSD__) -+// only defines __FreeBSD_version -+#include <osreldate.h> -+#endif -+ -+#if (defined(__FreeBSD__) && (__FreeBSD_version < 1002506 || \ -+ (__FreeBSD_version >= 1100000 && __FreeBSD_version < 1100056))) -+ throw ErrorLinuxFallbackToUtimes(L""); -+#else - //=> using open()/futimens() for regular files and utimensat(AT_SYMLINK_NOFOLLOW) for symlinks is consistent with "cp" and "touch"! - if (procSl == ProcSymlink::FOLLOW) - { -@@ -898,6 +907,7 @@ void setFileTimeRaw(const Zstring& fileP - if (::utimensat(AT_FDCWD, filePath.c_str(), newTimes, AT_SYMLINK_NOFOLLOW) != 0) - THROW_LAST_FILE_ERROR(replaceCpy(_("Cannot write modification time of %x."), L"%x", fmtPath(filePath)), L"utimensat"); - } -+#endif - } - - |