From 8d33466fca6ef287c644fdabb903be21535113b1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 19 Jan 2005 19:28:21 +0000 Subject: [PATCH] [BZ #681] 2005-01-19 Roland McGrath [BZ #681] * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing argument to execlp. Reported by Marcus Meissner . --- ChangeLog | 7 +++++++ sunrpc/openchild.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d87d4df..b70a318 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-01-19 Roland McGrath + + [BZ #681] + * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing + argument to execlp. + Reported by Marcus Meissner . + 2005-01-19 Jakub Jelinek * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo diff --git a/sunrpc/openchild.c b/sunrpc/openchild.c index 16f6a34..29ddfa6 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); -- 2.7.4