From 3764c43e4c01c7c2b33d591c743e16a8a38aee76 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 28 Dec 2010 02:56:10 -0800 Subject: More errors. --- pinyweb/suid/piny-suid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pinyweb/suid/piny-suid.c') diff --git a/pinyweb/suid/piny-suid.c b/pinyweb/suid/piny-suid.c index 6c63089..b92ee5f 100644 --- a/pinyweb/suid/piny-suid.c +++ b/pinyweb/suid/piny-suid.c @@ -114,7 +114,8 @@ int main( int argc, char *argv[] ) { syslog( LOG_NOTICE, "Going to exec '%s' as '%s'", buf, argv[1] ); execve( buf, argv + 2, env ); - syslog( LOG_ERR, "Invalid command '%s' (fell past exec)", argv[2] ); + err = errno; + syslog( LOG_ERR, "Invalid command '%s' (fell past exec, %s)", argv[2], strerror( err ) ); fprintf( stderr, "'%s' does not appear to be a valid command!\n", argv[2] ); return 1; -- cgit v1.2.3