diff options
author | Roland McGrath <roland@gnu.org> | 2005-01-19 19:28:21 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-01-19 19:28:21 +0000 |
commit | 8d33466fca6ef287c644fdabb903be21535113b1 (patch) | |
tree | 527bc33562dd25cb7de9e07ef14332902e0a3df3 /sunrpc/openchild.c | |
parent | f9f7fcbe4703a9709fdd87aa4124436e70af1c1a (diff) | |
download | glibc-8d33466fca6ef287c644fdabb903be21535113b1.tar.gz glibc-8d33466fca6ef287c644fdabb903be21535113b1.tar.xz glibc-8d33466fca6ef287c644fdabb903be21535113b1.zip |
[BZ #681]
2005-01-19 Roland McGrath <roland@redhat.com> [BZ #681] * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing argument to execlp. Reported by Marcus Meissner <meissner@suse.de>.
Diffstat (limited to 'sunrpc/openchild.c')
-rw-r--r-- | sunrpc/openchild.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/openchild.c b/sunrpc/openchild.c index 16f6a34e7a..29ddfa6b75 100644 --- a/sunrpc/openchild.c +++ b/sunrpc/openchild.c @@ -81,7 +81,7 @@ _openchild (const char *command, FILE ** fto, FILE ** ffrom) for (i = _rpc_dtablesize () - 1; i >= 3; i--) __close (i); fflush (stderr); - execlp (command, command, 0); + execlp (command, command, NULL); perror ("exec"); _exit (~0); |