logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0023-rsync-Use-standard-S_ISVTX-instead-of-S_ISTXT.patch (1140B)


  1. From 6e087cd1f746eb636de0ec1769db6b4aac65e666 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Fri, 14 Jun 2019 12:42:15 -0700
  4. Subject: [PATCH] rsync: Use standard S_ISVTX instead of S_ISTXT
  5. ---
  6. usr.bin/rsync/receiver.c | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/usr.bin/rsync/receiver.c b/usr.bin/rsync/receiver.c
  9. index 256a788b4f0..5dcc33b20fd 100644
  10. --- a/usr.bin/rsync/receiver.c
  11. +++ b/usr.bin/rsync/receiver.c
  12. @@ -87,7 +87,7 @@ rsync_set_metadata(struct sess *sess, int newfile,
  13. "to user.group: %u.%u", f->path, uid, gid);
  14. } else
  15. LOG4("%s: updated uid and/or gid", f->path);
  16. - mode &= ~(S_ISTXT | S_ISUID | S_ISGID);
  17. + mode &= ~(S_ISVTX | S_ISUID | S_ISGID);
  18. }
  19. /* Conditionally adjust file permissions. */
  20. @@ -149,7 +149,7 @@ rsync_set_metadata_at(struct sess *sess, int newfile, int rootfd,
  21. "to user.group: %u.%u", f->path, uid, gid);
  22. } else
  23. LOG4("%s: updated uid and/or gid", f->path);
  24. - mode &= ~(S_ISTXT | S_ISUID | S_ISGID);
  25. + mode &= ~(S_ISVTX | S_ISUID | S_ISGID);
  26. }
  27. /* Conditionally adjust file permissions. */
  28. --
  29. 2.49.0