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/debian/changelog | 6 ++++++ pinyweb/suid/piny-suid.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'pinyweb') 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 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; -- cgit v1.2.3