On Mon, Aug 27, 2007 at 04:49:19PM +0200, Matthias Koenig wrote:
> Print error in case execvp fails and use exit macros.
>
> Based on patch by Bernhard Voelker <[EMAIL PROTECTED]>
>
> Signed-off-by: Matthias Koenig <[EMAIL PROTECTED]>
....
> + /* execvp should never return */
> + perror("execvp");
> + exit(EXIT_FAILURE);
> + }
> }
>
> return 0;
^^^^^^^^
exit(EXIT_SUCCESS); :-)
Fixed, applied, thanks!
I'd like to use EXIT_ macros in all utils. It's already in TODO for
2.14.
Karel
--
Karel Zak <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html