X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftar.c;h=f8102e0aaef34b303664f331679a2ec328c72b49;hb=ec94fbdf458adb2af803eefdd1a9c9bbb432bb21;hp=cd32379035fac0efe9994577b6f5bdc487a53589;hpb=002bf868212d032a8901efc2110ea0224d16ee86;p=chaz%2Ftar diff --git a/src/tar.c b/src/tar.c index cd32379..f8102e0 100644 --- a/src/tar.c +++ b/src/tar.c @@ -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); @@ -1641,7 +1645,7 @@ parse_opt (int key, char *arg, struct argp_state *state) break; case 'T': - name_add_file (arg, filename_terminator); + name_add_file (arg, filename_terminator, MAKE_INCL_OPTIONS (args)); /* Indicate we've been given -T option. This is for backward compatibility only, so that `tar cfT archive /dev/null will succeed */