[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tar 1.13 --exclude bug
From: |
Ulli Horlacher |
Subject: |
tar 1.13 --exclude bug |
Date: |
Tue, 21 Aug 2001 11:40:01 +0200 |
I have discovered a bug in tar 1.13 with the --exclude and --exclude-from
options: they do not support directories any longer!
Example:
# tar --version
tar (GNU tar) 1.13
Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by John Gilmore and Jay Fenlason.
# tar -c --exclude=*/bashrc -f - etc | tar tvf - | grep bashrc
-rw-r--r-- root/other 14 1999-02-23 14:55 etc/skel/.bashrc
-rw-r--r-- root/other 1227 2001-04-27 10:45 etc/bashrc
# tar -c --exclude=etc/bashrc -f - etc | tar tvf - | grep bashrc
-rw-r--r-- root/other 14 1999-02-23 14:55 etc/skel/.bashrc
-rw-r--r-- root/other 1227 2001-04-27 10:45 etc/bashrc
# tar -c --exclude=bashrc -f - etc | tar tvf - | grep bashrc
-rw-r--r-- root/other 14 1999-02-23 14:55 etc/skel/.bashrc
The older tar 1.12 does not have this bug:
# /root/backup/tar --version
tar (GNU tar) 1.12
Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by John Gilmore and Jay Fenlason.
# /root/backup/tar -c --exclude=*/bashrc -f - etc | tar tvf - | grep bashrc
-rw-r--r-- root/other 14 1999-02-23 14:55 etc/skel/.bashrc
I have tested it on a Sun Ultra 5 with Solaris 2.6
--
-- Ullrich Horlacher, BelWue Coordination ------- mailto:address@hidden --
Computing Centre University of Stuttgart (RUS) phone: +49 711 685 5868
Allmandring 30, D-70550 Stuttgart, Germany fax: +49 711 678 8363
-- saft://saft.belwue.de/framstag ----------------- http://www.belwue.de/ ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- tar 1.13 --exclude bug,
Ulli Horlacher <=