fixed typo
Costa Tsaousis (ktsaou) committed
Jan 29, 2017 at 21:17 UTC
c18640088c4cb27487f5302390389c8d8ee5000e
1 file changed
+2
-2
src/apps_plugin.c
+2
-2
@@ -3026,7 +3026,7 @@ static int am_i_running_as_root() {
3026
}
3027
3028
#ifdef HAVE_CAPABILITY
3029
-static int set_capabilities() {
3029
+static int check_capabilities() {
3030
if(!CAP_IS_SUPPORTED(CAP_DAC_READ_SEARCH)) {
3031
error("This system does not support CAP_DAC_READ_SEARCH capability. Please setuid to root apps.plugin.");
3032
return 0;
@@ -3137,7 +3137,7 @@ int main(int argc, char **argv) {
3137
parse_args(argc, argv);
3138
3139
if(!am_i_running_as_root())
3140
- if(!set_capabilities())
3140
+ if(!check_capabilities())
3141
error("apps.plugin should either run as root or have special capabilities. "
3142
"Without these, apps.plugin cannot report disk I/O utilization of other processes. "
3143
"To enable capabilities run: sudo setcap cap_dac_read_search,cap_sys_ptrace+ep %1$s; "