]> git.pld-linux.org Git - packages/rsync.git/blob - lchmod.patch
rebuild with openssl 3.0.0
[packages/rsync.git] / lchmod.patch
1 --- rsync-3.2.3/syscall.c~      2020-07-28 01:36:55.000000000 +0200
2 +++ rsync-3.2.3/syscall.c       2020-11-06 17:26:04.220502740 +0100
3 @@ -232,7 +232,8 @@ int do_chmod(const char *path, mode_t mo
4         RETURN_ERROR_IF_RO_OR_LO;
5  #ifdef HAVE_LCHMOD
6         code = lchmod(path, mode & CHMOD_BITS);
7 -#else
8 +       if (code < 0 && errno == ENOTSUP) {
9 +#endif
10         if (S_ISLNK(mode)) {
11  # if defined HAVE_SETATTRLIST
12                 struct attrlist attrList;
13 @@ -247,6 +248,8 @@ int do_chmod(const char *path, mode_t mo
14  # endif
15         } else
16                 code = chmod(path, mode & CHMOD_BITS); /* DISCOURAGED FUNCTION */
17 +#ifdef HAVE_LCHMOD
18 +       }
19  #endif /* !HAVE_LCHMOD */
20         if (code != 0 && (preserve_perms || preserve_executability))
21                 return code;
This page took 0.054599 seconds and 3 git commands to generate.