cvs commit: src/usr.bin/tar bsdtar.c
Colin Percival
cperciva at FreeBSD.org
Mon May 19 18:38:02 UTC 2008
cperciva 2008-05-19 18:38:01 UTC
FreeBSD src repository
Modified files:
usr.bin/tar bsdtar.c
Log:
Detect if argv[1] is "" and avoid calling malloc(0). Prior to this commit,
running 'tar ""' would print 'No memory' instead of the correct error
message, 'Must specify one of -c, -r, -t, -u, -x' if malloc is set to
System V mode (malloc(0) == NULL).
Revision Changes Path
1.90 +2 -2 src/usr.bin/tar/bsdtar.c
More information about the cvs-src
mailing list