Browse Source

Bugfixes.

* doc/tar.1: Fix typo in font spec.
* src/tar.c (sort_mode_arg, sort_mode_flag): Protect "inode"
(SAVEDIR_SORT_INODE) with D_INO_IN_DIRENT
Sergey Poznyakoff 10 years ago
parent
commit
e9ddc08da0
2 changed files with 5 additions and 1 deletions
  1. 1 1
      doc/tar.1
  2. 4 0
      src/tar.c

+ 1 - 1
doc/tar.1

@@ -879,7 +879,7 @@ Exclude files matching patterns listed in FILE.
 \fB\-\-strip\-components\fR=\fINUMBER\fR
 \fB\-\-strip\-components\fR=\fINUMBER\fR
 Strip \fINUMBER\fR leading components from file names on extraction.
 Strip \fINUMBER\fR leading components from file names on extraction.
 .TP
 .TP
-\fB\-\-transform\fR=\fIEXPRESSION\dR, \fB\-\-xform\fR=\fIEXPRESSION\fR
+\fB\-\-transform\fR=\fIEXPRESSION\fR, \fB\-\-xform\fR=\fIEXPRESSION\fR
 Use sed replace \fIEXPRESSION\fR to transform file names.
 Use sed replace \fIEXPRESSION\fR to transform file names.
 .SS File name matching options
 .SS File name matching options
 These options affect both exclude and include patterns.
 These options affect both exclude and include patterns.

+ 4 - 0
src/tar.c

@@ -1341,14 +1341,18 @@ static char filename_terminator;
 static char const *const sort_mode_arg[] = {
 static char const *const sort_mode_arg[] = {
   "none",
   "none",
   "name",
   "name",
+#if D_INO_IN_DIRENT
   "inode",
   "inode",
+#endif
   NULL
   NULL
 };
 };
 
 
 static int sort_mode_flag[] = {
 static int sort_mode_flag[] = {
     SAVEDIR_SORT_NONE,
     SAVEDIR_SORT_NONE,
     SAVEDIR_SORT_NAME,
     SAVEDIR_SORT_NAME,
+#if D_INO_IN_DIRENT
     SAVEDIR_SORT_INODE
     SAVEDIR_SORT_INODE
+#endif
 };
 };
 
 
 ARGMATCH_VERIFY (sort_mode_arg, sort_mode_flag);
 ARGMATCH_VERIFY (sort_mode_arg, sort_mode_flag);