1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/usr.bin/tar
Colin Percival 29d10c76f9 The value le->name cannot be NULL when we're freeing an entry in the
hardlink table for two reasons: 1. If le->name is set to NULL, the
structure le won't be inserted into the table; 2. Even if le somehow
did manage to get into the table with le->name equal to NULL, we would
die when we dereferenced le->null before we could get to the point of
freeing the entry.

Remove the unnecessary "if (le->name != NULL)" test and just free the
pointer.

Found by:	Coverity Prevent
2008-05-23 05:07:22 +00:00
..
test New bsdtar test harness. Still rather skimpy, but a lot easier 2008-05-02 05:17:16 +00:00
bsdtar_platform.h Include a suitable stub definition of __FBSDID() for non-FreeBSD platforms. 2008-01-02 00:23:00 +00:00
bsdtar.1 Add --keep-newer-files option (as in GNU tar: When in -x mode, ignore 2008-05-17 15:55:29 +00:00
bsdtar.c Detect if argv[1] is "" and avoid calling malloc(0). Prior to this commit, 2008-05-19 18:38:01 +00:00
bsdtar.h Improve portability via s/struct siginfo/struct siginfo_data/. This was 2008-05-22 21:08:36 +00:00
config_freebsd.h --chroot implementation thanks to Joerg Sonnenberger. 2008-03-15 03:06:46 +00:00
COPYING Include Guido's copyright for the fnmatch() code I cribbed from. 2008-01-02 00:19:49 +00:00
getdate.y Fill in some casts that are needed (according to GCC 4.1) 2007-07-20 01:27:50 +00:00
Makefile Add SIGINFO (and for portability to SIGINFO-lacking systems, SIGUSR1) 2008-05-18 06:24:47 +00:00
matching.c Fix --fast-read by decrementing the remaining patterns to be matched, 2008-03-18 06:18:49 +00:00
read.c Add SIGINFO (and for portability to SIGINFO-lacking systems, SIGUSR1) 2008-05-18 06:24:47 +00:00
siginfo.c Improve portability via s/struct siginfo/struct siginfo_data/. This was 2008-05-22 21:08:36 +00:00
tree.c bsdtar 2.0.23: 2007-03-11 10:36:42 +00:00
tree.h Correct the copyright messages: Make this a standard vanilla 2007-01-09 08:12:17 +00:00
util.c Use archive_entry_strmode() instead of a local bsdtar_strmode(). 2008-01-02 00:21:27 +00:00
write.c The value le->name cannot be NULL when we're freeing an entry in the 2008-05-23 05:07:22 +00:00