OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../acl/acl-2.2.51-upstream-fixes.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 3d80b8fa04cdc7fc89c49abff738bdbedb8ba758 Mon Sep 17 00:00:00 2001
  17. From: Andreas Gruenbacher <agruen@linbit.com>
  18. Date: Wed, 25 May 2011 16:18:53 +0000
  19. Subject: walk_tree: do not follow symlink to directory with -h
  20. Keep libmisc/walk_tree.c in sync with the version in the attr package;
  21. no change in functionality for getfacl or setfacl.
  22. Remove a related dead line of code from setfacl.
  23. ---
  24. diff --git a/libmisc/walk_tree.c b/libmisc/walk_tree.c
  25. index 30ff92a..2be9d47 100644
  26. --- a/libmisc/walk_tree.c
  27. +++ b/libmisc/walk_tree.c
  28. @@ -60,7 +60,8 @@ static int walk_tree_rec(const char *path, int walk_flags,
  29. void *), void *arg, int depth)
  30. {
  31. int follow_symlinks = (walk_flags & WALK_TREE_LOGICAL) ||
  32. - (!(walk_flags & WALK_TREE_PHYSICAL) &&
  33. + ((walk_flags & WALK_TREE_DEREFERENCE) &&
  34. + !(walk_flags & WALK_TREE_PHYSICAL) &&
  35. depth == 0);
  36. int have_dir_stat = 0, flags = walk_flags, err;
  37. struct entry_handle dir;
  38. diff --git a/setfacl/setfacl.c b/setfacl/setfacl.c
  39. index 4f4ff27..81062a6 100644
  40. --- a/setfacl/setfacl.c
  41. +++ b/setfacl/setfacl.c
  42. @@ -596,7 +596,6 @@ int main(int argc, char *argv[])
  43. case 'P': /* do not follow symlinks */
  44. walk_flags |= WALK_TREE_PHYSICAL;
  45. - walk_flags |= WALK_TREE_PHYSICAL;
  46. walk_flags &= ~(WALK_TREE_LOGICAL | WALK_TREE_DEREFERENCE |
  47. WALK_TREE_DEREFERENCE_TOPLEVEL);
  48. break;
  49. --
  50. cgit v0.9.0.2