diff options
author | brian <brian@FreeBSD.org> | 2001-07-09 09:24:06 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-07-09 09:24:06 +0000 |
commit | 8636b161b333b18525b6f5ffc5139079c29c0d63 (patch) | |
tree | a109115514a8774e981280efca775db8a410df5b /gnu/usr.bin/tar | |
parent | ef44874abb9460f2956eba8e3233154af304f5b1 (diff) | |
download | FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.zip FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.tar.gz |
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'gnu/usr.bin/tar')
-rw-r--r-- | gnu/usr.bin/tar/buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/tar/buffer.c b/gnu/usr.bin/tar/buffer.c index eb7e3ef..a49f59b 100644 --- a/gnu/usr.bin/tar/buffer.c +++ b/gnu/usr.bin/tar/buffer.c @@ -21,6 +21,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ * Buffer management for tar. * * Written by John Gilmore, ihnp4!hoptoad!gnu, on 25 August 1985. + * + * $FreeBSD$ */ #include <stdio.h> @@ -1505,7 +1507,7 @@ tryagain: p = getenv ("SHELL"); if (p == 0) p = "/bin/sh"; - execlp (p, "-sh", "-i", 0); + execlp (p, "-sh", "-i", (char *)0); msg_perror ("can't exec a shell %s", p); _exit (55); default: |