/[tar]/tar/src/tar.c
ViewVC logotype

Diff of /tar/src/tar.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.73 by eggert, Thu Nov 13 06:23:23 2003 UTC revision 1.74 by gray, Thu Nov 13 22:27:44 2003 UTC
# Line 122  static struct fmttab { Line 122  static struct fmttab {
122    enum archive_format fmt;    enum archive_format fmt;
123  } const fmttab[] = {  } const fmttab[] = {
124    { "v7",      V7_FORMAT },    { "v7",      V7_FORMAT },
125    { "oldgnu",  OLDGNU_FORMAT },    { "oldgnu",  OLDGNU_FORMAT },
126      { "ustar",   USTAR_FORMAT },
127    { "posix",   POSIX_FORMAT },    { "posix",   POSIX_FORMAT },
128  #if 0 /* not fully supported yet */  #if 0 /* not fully supported yet */
129    { "star",    STAR_FORMAT },    { "star",    STAR_FORMAT },
# Line 442  Archive format selection:\n\ Line 443  Archive format selection:\n\
443                                       FMTNAME is one of the following:\n\                                       FMTNAME is one of the following:\n\
444                                       v7        old V7 tar format\n\                                       v7        old V7 tar format\n\
445                                       oldgnu    GNU format as per tar <= 1.12\n\                                       oldgnu    GNU format as per tar <= 1.12\n\
446                                       posix     POSIX 1003.1-2001 tar format\n\                                       ustar     POSIX 1003.1-1988 (ustar) format\n\
447                                         posix     POSIX 1003.1-2001 (pax) format\n\
448                                       gnu       GNU format\n\                                       gnu       GNU format\n\
449        --old-archive, --portability   same as --format=v7\n\        --old-archive, --portability   same as --format=v7\n\
450        --posix                        same as --format=posix\n\        --posix                        same as --format=posix\n\
# Line 1274  see the file named COPYING for details." Line 1276  see the file named COPYING for details."
1276      archive_format = DEFAULT_ARCHIVE_FORMAT;      archive_format = DEFAULT_ARCHIVE_FORMAT;
1277    
1278    if (archive_format == GNU_FORMAT && getenv ("POSIXLY_CORRECT"))    if (archive_format == GNU_FORMAT && getenv ("POSIXLY_CORRECT"))
1279      archive_format = POSIX_FORMAT;      archive_format = POSIX_FORMAT; /*FIXME?*/
1280    
1281    if (volume_label_option && subcommand_option == CREATE_SUBCOMMAND)    if (volume_label_option && subcommand_option == CREATE_SUBCOMMAND)
1282      assert_format (FORMAT_MASK (OLDGNU_FORMAT)      assert_format (FORMAT_MASK (OLDGNU_FORMAT)

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26