summaryrefslogtreecommitdiff
path: root/pinyweb/suid/piny-suid.c
diff options
context:
space:
mode:
Diffstat (limited to 'pinyweb/suid/piny-suid.c')
-rw-r--r--pinyweb/suid/piny-suid.c3
1 files changed, 2 insertions, 1 deletions
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;