diff options
Diffstat (limited to 'pinyweb')
-rw-r--r-- | pinyweb/debian/changelog | 6 | ||||
-rw-r--r-- | pinyweb/suid/piny-suid.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/pinyweb/debian/changelog b/pinyweb/debian/changelog index 958418b..8d7281a 100644 --- a/pinyweb/debian/changelog +++ b/pinyweb/debian/changelog @@ -1,3 +1,9 @@ +pinyweb (0.5) unstable; urgency=low + + * Another error message improvement. + + -- Julian Blake Kongslie <jblake@omgwallhack.org> Tue, 28 Dec 2010 02:55:57 -0800 + pinyweb (0.4) unstable; urgency=low * Fix some stupid error messages. 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; |