From 19ac01a290746040865d69f6e8c662f3890b4071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 27 Jan 2007 04:01:18 +0000 Subject: Fix gcc warning. --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 7b9ebc1..3023673 100644 --- a/main.c +++ b/main.c @@ -12,6 +12,7 @@ #include #include #include +#include #ifdef HAVE_GETOPT_H #include #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); } } -- cgit v1.2.3-2-g168b