Skip to content
Snippets Groups Projects
Commit 879873dd authored by sbbs's avatar sbbs
Browse files

Resolve warnings:

sbbscon.c: In function ‘whoami’:
sbbscon.c:430: warning: implicit declaration of function ‘getresuid’
sbbscon.c:432: warning: implicit declaration of function ‘getresgid’
sbbscon.c: In function ‘linux_keepcaps’:
sbbscon.c:452: warning: implicit declaration of function ‘prctl’
sbbscon.c:447: warning: unused variable ‘strbuf’
parent d6d9448a
Branches
Tags
No related merge requests found
......@@ -35,6 +35,10 @@
* Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/
#ifdef USE_LINUX_CAPS
#define _GNU_SOURCE
#endif
/* ANSI headers */
#include <stdio.h>
#include <string.h>
......@@ -60,6 +64,7 @@
#ifdef USE_LINUX_CAPS
#include <sys/capability.h>
#include <sys/prctl.h>
#endif
#include <sys/types.h>
......@@ -444,7 +449,6 @@ void list_caps(void)
static int linux_keepcaps(void)
{
char strbuf[100];
/*
* Ask the kernel to allow us to keep our capabilities after we
* setuid().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment