diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-12-28 02:56:10 -0800 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-12-28 02:56:10 -0800 |
commit | 3764c43e4c01c7c2b33d591c743e16a8a38aee76 (patch) | |
tree | cfa3278cd7cecccae8550d50eb415008fec0e04c /pinyweb/suid/piny-suid.c | |
parent | a10ccbdec38c0e012eb86ceaa73422baabe12843 (diff) | |
download | piny-code-3764c43e4c01c7c2b33d591c743e16a8a38aee76.tar.gz piny-code-3764c43e4c01c7c2b33d591c743e16a8a38aee76.zip |
More errors.
Diffstat (limited to 'pinyweb/suid/piny-suid.c')
-rw-r--r-- | pinyweb/suid/piny-suid.c | 3 |
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; |