diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2007-01-27 04:01:18 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2007-01-27 04:01:18 +0000 |
commit | 19ac01a290746040865d69f6e8c662f3890b4071 (patch) | |
tree | 587ea6aa5284c8dd4be54f3799eb440f9166b6b1 | |
parent | e4fc9d118babee916875d2d5c4e71e173ff40d3c (diff) |
Fix gcc warning.
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -12,6 +12,7 @@ #include <unistd.h> #include <assert.h> #include <string.h> +#include <errno.h> #ifdef HAVE_GETOPT_H #include <getopt.h> #endif @@ -32,7 +33,7 @@ static void drop_sgids( void ) if( setregid(real_gid,real_gid) != 0 ) { - fprintf (stderr, "Could not drop setgid: %m!\n"); + fprintf (stderr, "Could not drop setgid: %s\n", strerror(errno)); exit(EX_DROPPERM); } } |