summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2007-01-27 04:01:18 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2007-01-27 04:01:18 +0000
commit19ac01a290746040865d69f6e8c662f3890b4071 (patch)
tree587ea6aa5284c8dd4be54f3799eb440f9166b6b1
parente4fc9d118babee916875d2d5c4e71e173ff40d3c (diff)
Fix gcc warning.
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7b9ebc1..3023673 100644
--- a/main.c
+++ b/main.c
@@ -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);
}
}