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.

63 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tar/tar-0001-fix-build-failure.patch
  5. # Copyright (C) 2015 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 e9ddc08da0982f36581ae5a8c7763453ff41cfe8 Mon Sep 17 00:00:00 2001
  17. From: Sergey Poznyakoff <gray@gnu.org>
  18. Date: Wed, 24 Sep 2014 21:22:16 +0000
  19. Subject: Bugfixes.
  20. * doc/tar.1: Fix typo in font spec.
  21. * src/tar.c (sort_mode_arg, sort_mode_flag): Protect "inode"
  22. (SAVEDIR_SORT_INODE) with D_INO_IN_DIRENT
  23. ---
  24. diff --git a/doc/tar.1 b/doc/tar.1
  25. index 9000627..b91de63 100644
  26. --- a/doc/tar.1
  27. +++ b/doc/tar.1
  28. @@ -879,7 +879,7 @@ Exclude files matching patterns listed in FILE.
  29. \fB\-\-strip\-components\fR=\fINUMBER\fR
  30. Strip \fINUMBER\fR leading components from file names on extraction.
  31. .TP
  32. -\fB\-\-transform\fR=\fIEXPRESSION\dR, \fB\-\-xform\fR=\fIEXPRESSION\fR
  33. +\fB\-\-transform\fR=\fIEXPRESSION\fR, \fB\-\-xform\fR=\fIEXPRESSION\fR
  34. Use sed replace \fIEXPRESSION\fR to transform file names.
  35. .SS File name matching options
  36. These options affect both exclude and include patterns.
  37. diff --git a/src/tar.c b/src/tar.c
  38. index 225c624..f8102e0 100644
  39. --- a/src/tar.c
  40. +++ b/src/tar.c
  41. @@ -1341,14 +1341,18 @@ static char filename_terminator;
  42. static char const *const sort_mode_arg[] = {
  43. "none",
  44. "name",
  45. +#if D_INO_IN_DIRENT
  46. "inode",
  47. +#endif
  48. NULL
  49. };
  50. static int sort_mode_flag[] = {
  51. SAVEDIR_SORT_NONE,
  52. SAVEDIR_SORT_NAME,
  53. +#if D_INO_IN_DIRENT
  54. SAVEDIR_SORT_INODE
  55. +#endif
  56. };
  57. ARGMATCH_VERIFY (sort_mode_arg, sort_mode_flag);
  58. --
  59. cgit v0.9.0.2