mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-05-31 03:56:45 +00:00
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
This commit is contained in:
@@ -879,7 +879,7 @@ Exclude files matching patterns listed in FILE.
|
||||
\fB\-\-strip\-components\fR=\fINUMBER\fR
|
||||
Strip \fINUMBER\fR leading components from file names on extraction.
|
||||
.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.
|
||||
.SS File name matching options
|
||||
These options affect both exclude and include patterns.
|
||||
|
||||
@@ -1341,14 +1341,18 @@ static char filename_terminator;
|
||||
static char const *const sort_mode_arg[] = {
|
||||
"none",
|
||||
"name",
|
||||
#if D_INO_IN_DIRENT
|
||||
"inode",
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
static int sort_mode_flag[] = {
|
||||
SAVEDIR_SORT_NONE,
|
||||
SAVEDIR_SORT_NAME,
|
||||
#if D_INO_IN_DIRENT
|
||||
SAVEDIR_SORT_INODE
|
||||
#endif
|
||||
};
|
||||
|
||||
ARGMATCH_VERIFY (sort_mode_arg, sort_mode_flag);
|
||||
|
||||
Reference in New Issue
Block a user