Any objections for supporting write_opt=nodir for ustar archives? Another option for Ruby gems will be going with GNU tar. :(
-- WBR, Vadim Zhukov Index: options.c =================================================================== RCS file: /cvs/src/bin/pax/options.c,v retrieving revision 1.76 diff -u -p -r1.76 options.c --- options.c 4 Dec 2012 02:24:45 -0000 1.76 +++ options.c 26 Mar 2013 16:16:45 -0000 @@ -119,7 +119,7 @@ FSUB fsub[] = { /* 5: POSIX USTAR */ {"ustar", 10240, BLKMULT, 0, 1, BLKMULT, 0, ustar_id, ustar_strd, ustar_rd, tar_endrd, ustar_stwr, ustar_wr, tar_endwr, tar_trail, - rd_wrfile, wr_rdfile, bad_opt}, + rd_wrfile, wr_rdfile, tar_opt}, }; #define F_OCPIO 0 /* format when called as cpio -6 */ #define F_ACPIO 1 /* format when called as cpio -c */ Index: tar.c =================================================================== RCS file: /cvs/src/bin/pax/tar.c,v retrieving revision 1.44 diff -u -p -r1.44 tar.c --- tar.c 4 Dec 2012 02:24:45 -0000 1.44 +++ tar.c 26 Mar 2013 16:16:45 -0000 @@ -914,6 +914,12 @@ ustar_wr(ARCHD *arcn) } /* + * user asked that dirs not be written to the archive + */ + if (arcn->type == PAX_DIR && tar_nodir) + return (1); + + /* * check the length of the linkname */ if (((arcn->type == PAX_SLK) || (arcn->type == PAX_HLK) ||