From: Roland McGrath Date: Wed, 16 Feb 2005 10:52:52 +0000 (+0000) Subject: 2005-01-19 Roland McGrath X-Git-Tag: cvs/fedora-glibc-2_3-20050216T1256~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89020b6f1c2caae213bcc56f1139cafc284e8766;p=thirdparty%2Fglibc.git 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 . --- diff --git a/sunrpc/openchild.c b/sunrpc/openchild.c index 16f6a34e7a3..29ddfa6b755 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);