mirror of the now-defunct rocklinux.org
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.

63 lines
2.6 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/tar/no_same_owner.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./src/extract.c.orig Mon Jun 3 14:56:04 2002
  23. +++ ./src/extract.c Mon Jun 3 14:56:57 2002
  24. @@ -162,7 +162,7 @@
  25. extract as the original owner. Or else, if we are running as a user,
  26. leave the owner and group as they are, so we extract as that user. */
  27. - if (we_are_root || same_owner_option)
  28. + if (!no_same_owner_option && (we_are_root || same_owner_option))
  29. {
  30. #if HAVE_LCHOWN
  31. --- ./src/common.h.orig Mon Jun 3 14:57:49 2002
  32. +++ ./src/common.h Mon Jun 3 15:13:56 2002
  33. @@ -196,6 +196,9 @@
  34. GLOBAL int no_recurse_option;
  35. /* Boolean value. */
  36. +GLOBAL int no_same_owner_option;
  37. +
  38. +/* Boolean value. */
  39. GLOBAL int numeric_owner_option;
  40. /* Boolean value. */
  41. --- ./src/tar.c.orig Mon Jun 3 15:13:28 2002
  42. +++ ./src/tar.c Mon Jun 3 15:15:53 2002
  43. @@ -205,6 +205,7 @@
  44. {"newer-mtime", required_argument, NULL, NEWER_MTIME_OPTION},
  45. {"null", no_argument, NULL, NULL_OPTION},
  46. {"no-recursion", no_argument, NULL, NO_RECURSE_OPTION},
  47. + {"no-same-owner", no_argument, &no_same_owner_option, 1},
  48. {"numeric-owner", no_argument, &numeric_owner_option, 1},
  49. {"old-archive", no_argument, NULL, 'o'},
  50. {"one-file-system", no_argument, NULL, 'l'},
  51. @@ -305,6 +306,7 @@
  52. --atime-preserve don't change access times on dumped files\n\
  53. -m, --modification-time don't extract file modified time\n\
  54. --same-owner try extracting files with the same ownership\n\
  55. + --no-same-owner don't extract files with the same ownership\n\
  56. --numeric-owner always use numbers for user/group names\n\
  57. -p, --same-permissions extract all protection information\n\
  58. --preserve-permissions same as -p\n\