summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
Commit message (Collapse)AuthorAgeFilesLines
* In the examples, use "tar.gz" as the extension forkientzle2006-05-011-3/+3
| | | | | | gzip-compressed tar archives. Thanks to: Mike Hunter
* If you see a broken symlink, don't try to follow it,kientzle2006-04-022-4/+7
| | | | | | | | just archive it as a symlink, even if -h was specified. Thanks to: Jin Guojun PR: bin/95175 MFC After: 1 week
* Extended attribute support on write for Linux; FreeBSD hooks arekientzle2006-03-219-23/+140
| | | | | | | | | | forthcoming. This commit also has a number of style(9) fixes and minor corrections so the code works better with the build system being used for non-FreeBSD builds. Many thanks to: Jaakko Heinonen, who proposed a mechanism for extended attribute support and implemented both the machine-independent portion and the Linux-specific portion.
* Remove non-FreeBSD source from FreeBSD repository.kientzle2006-03-121-20/+0
|
* Remove configure.ac.in and the 'distfile' target fromkientzle2006-03-084-164/+6
| | | | | the FreeBSD makefile. This is a step towards cleaning out the non-FreeBSD bits from the FreeBSD source tree.
* Add a check for Linux' "libacl" library and headers.kientzle2006-03-071-0/+4
|
* Change the output of --version to match GNU "gnits" standards.kientzle2006-03-071-5/+2
| | | | | | | | (I'm not using GPL, but I still think there are good ideas in the GNU projects. ;-) Among other things, this should make it easier for clients of bsdtar to recognize it automatically: bsdtar --version | grep bsdtar
* Fix a format mismatch (%d integer format, platform-dependentkientzle2006-03-071-1/+1
| | | | argument type).
* If opendir(".") fails after descending into a subdirectory viapeadar2006-02-221-1/+2
| | | | | | | | | | chdir(), be sure to undo the effects of the chdir before continuing. Without this, after hitting a directory with mode 0111 (for example), tar will get lost, and won't add any yet unvisted files to your archive. (Or possibly add the wrong files, I suppose...) Reviewed By: kientzle@
* Use the .Fx macro.simon2006-01-171-2/+7
| | | | MFC after: 3 days
* Remove the -B option from the directory-copying examples. The -Bkientzle2005-12-091-2/+2
| | | | | | | | option is undocumented because it does nothing. It does nothing because bsdtar never needs it. It is accepted because gnutar does sometimes need it and many scripts use it. Reported by: Pawel Jakub Dawidek
* Portability: remove AC_FUNC_MALLOC from configure.ac.in.kientzle2005-11-271-1/+0
| | | | According to Dan Nelson, this fixes the build on AIX 5.2.
* Edit pathnames for -x but not for -t. Otherwise, people get confusedkientzle2005-11-061-1/+1
| | | | | | | | when list the archive contents, then try to extract selected files (file selection always works against unedited pathnames). With this change, -t always shows the pathnames as they appear in the archive. Thanks to: Robert Watson
* In mode 'u', check for an error return from archive_read_open.kientzle2005-11-011-2/+6
| | | | | | | | | | | | | This causes attempts to update a non-existent file to report an actual error instead of triggering an assertion failure. PR: bin/87911 Thanks to: roemer.ulrich MFC after: 3 days Note: This does not entirely fix bin/87911. I need to decide on the "correct" response when someone tries to update a non-existent archive file.
* Include <sys/param.h> in order to get current __FreeBSD_versionkientzle2005-11-011-0/+1
| | | | | | | | in order to properly set HAVE_NL_LANGINFO. <whew!> Thanks to: Andrey Chernov PR: bin/88013 MFC after: 3 days
* Spell "--format" correctly in error message. (It hasn't beenkientzle2005-11-011-1/+1
| | | | | | | | called "-F" for a very long time.) PR: bin/86915 Thanks to: Gary W. Swearingen MFC after: 3 days
* Fix -u with absolute paths (e.g., "tar -uf foo.tar /bar") by handlingkientzle2005-09-241-12/+12
| | | | | | pathname edits before comparing pathnames on disk to those in the archive. Thanks to: Gareth Bailey, Lowell Gilbert
* Detect Mac OS X's broken ACL library.kientzle2005-09-242-1/+8
| | | | Thanks to: Diego "Flameeyes" Petten?
* Style fix: Correct a compiler warning from GCC 4kientzle2005-09-211-0/+1
| | | | | Thanks to: Divacky Roman PR: bin/84993
* The bsdtar_warnc() reporting function requires the program name to bekientzle2005-08-021-10/+12
| | | | | | | | | set up before it is called, so move the progname initialization before the first possible call to bsdtar_warnc(). Thanks to: Stanislav Sedov PR: bin/83366 MFC after: 7 days
* Fixed troff warnings.ru2005-06-271-1/+1
| | | | Approved by: re (blanket manpages)
* Clarify some error messages.kientzle2005-05-084-8/+8
|
* bsdtar now uses the "tree" package instead of "fts" for walkingkientzle2005-04-247-1518/+743
| | | | directory heirarchies.
* Correct autoconf/automake invocation to work with devel/gnu-auto* fromkientzle2005-04-231-2/+2
| | | | | | ports. Thanks to: Dag-Erling Sm?rgrav (des@)
* Minor fix to the configure logic to properly detect ACL support.kientzle2005-04-231-2/+1
|
* Overhaul getdate.y. In particular, remove minutes-based logickientzle2005-04-231-686/+574
| | | | | | | | | | | | | (combine with existing seconds-based), treat '-' as punctuation rather than a negative number indicator (eliminates several special cases), use a single list of special words instead of several separate lists, use table-driven abbreviation logic (eliminate duplicate word entries and special-case abbreviation and plural handling). The result is shorter, simpler (judging from comments, earlier maintainers didn't understand the special handling for "negative years"), handles more cases (e.g., "tu" is now a recognized abbreviation for "tuesday", "3rd" is now equivalent to "third") and it has 2 fewer shift/reduce conflicts.
* Point users to tcsh(1) for information about shell globbing patterns,murray2005-04-191-1/+2
| | | | | | rather than 'XXXX'. MFC after: 1 week
* A very minor tweak to the handling of leading '/' characters.kientzle2005-04-171-1/+6
|
* A number of fixes to the autoconf-generated build system. Inkientzle2005-04-175-30/+120
| | | | | | | | particular, acl support is no longer enabled on FreeBSD 4, acl support should be correctly enabled on Linux, dirent.d_namlen should be correctly detected on platforms that support it. Thanks to: Greg Lewis, Juergen Lock, and Jaakko Heinonen
* Configure script needs to test for dirent.d_namlen.kientzle2005-04-171-1/+1
| | | | Thanks to: Juergen Lock
* Update "make distfile" to use newest automake/autoconf from ports.kientzle2005-04-171-2/+2
| | | | Thanks to: Juergen Lock
* Support path-rewriting options (including --strip-components) for bothkientzle2005-04-176-90/+115
| | | | | | extraction and creation. While I'm here, fix a bug reported by Garrett Wollman: when stripping the leading '/' from the path "/", don't produce an entry with an empty name; produce "." instead.
* Add directory hierarchy copying example.obrien2005-03-281-0/+7
|
* Deorbit gtar, step 1: Remove WITH_GTAR knob.kientzle2005-03-201-3/+0
| | | | | | | "tar" is now always a synonym for "bsdtar". People who need gtar can access it as "gtar." Approved by: No objections on arch@
* A handful of minor portability and style improvements.kientzle2005-03-143-15/+16
|
* Style correction: one tab after #define.kientzle2005-03-141-46/+47
|
* Re-unbreak the distfile target.kientzle2005-03-131-3/+4
| | | | | | | Also, reduce the WARNS level to 5 since different build environments end up using different Yacc skeletons. The BSD one does not predeclare yyparse, the FSF one does, so it's not really possible to consistently enforce both -Wmissing-prototypes and -Wredundant-decls.
* Fix a compile warning, fix the build.kientzle2005-03-131-1/+1
|
* "make depend" with .y files is trickier than it looks. <sigh>kientzle2005-03-131-3/+2
|
* Brain-o. Missing quote.kientzle2005-03-131-1/+1
|
* Add --newer-ctime, --newer-mtime, --newer-ctime-than, and --newer-mtime-thankientzle2005-03-139-39/+1067
| | | | | | | switches to support selecting files by time of modification. Special thanks to: Steven M. Bellovin, Rich $alz, and Jim Berets, authors of the public-domain getdate.y date-parsing code.
* Add --strip-components option, per bin/77666.kientzle2005-03-135-2/+72
| | | | Thanks to: Sangwoo Shim
* Document the --null, --one-file-system, and -I options.kientzle2005-02-181-5/+34
| | | | Clarify that -T can be used in 'x' mode as well as 'c' mode.
* Sort sections.ru2005-01-181-52/+52
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Add a fallback version of fnmatch() to the bsdtarkientzle2004-12-223-9/+170
| | | | | | | | | source code. Include configure logic to pick up the system one when it exists and use the fallback version when it doesn't exist. Set the default for FreeBSD to use the system version. With this, bsdtar should now be quite portable.
* GC an unused #includekientzle2004-12-221-1/+0
|
* Fix -W long option handling.kientzle2004-12-221-5/+15
| | | | | | | | | | | In particular: -W excl=text fails because "excl" is a prefix of both "exclude" and "exclude-from". But, -W exclude=text is okay because it matches "exclude" exactly. Thanks to: Jose F Nieves MFC after: 7 days
* Portability: the included fts.c should nowkientzle2004-12-222-2/+2
| | | | | | | compile on many non-FreeBSD systems, including Linux, Solaris, Darwin, etc. Thanks to: many people who pointed out the same portability problem
* Use a relative symlinking so that "tar" also works in /stand.ru2004-11-121-1/+1
|
OpenPOWER on IntegriCloud