From c18640088c4cb27487f5302390389c8d8ee5000e Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 29 Jan 2017 21:17:32 +0200 Subject: [PATCH] fixed typo --- src/apps_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps_plugin.c b/src/apps_plugin.c index 5fd089f5..654056c0 100644 --- a/src/apps_plugin.c +++ b/src/apps_plugin.c @@ -3026,7 +3026,7 @@ static int am_i_running_as_root() { } #ifdef HAVE_CAPABILITY -static int set_capabilities() { +static int check_capabilities() { if(!CAP_IS_SUPPORTED(CAP_DAC_READ_SEARCH)) { error("This system does not support CAP_DAC_READ_SEARCH capability. Please setuid to root apps.plugin."); return 0; @@ -3137,7 +3137,7 @@ int main(int argc, char **argv) { parse_args(argc, argv); if(!am_i_running_as_root()) - if(!set_capabilities()) + if(!check_capabilities()) error("apps.plugin should either run as root or have special capabilities. " "Without these, apps.plugin cannot report disk I/O utilization of other processes. " "To enable capabilities run: sudo setcap cap_dac_read_search,cap_sys_ptrace+ep %1$s; " -- 2.39.2