diff --git a/src/shared/verbs.c b/src/shared/verbs.c index 7c5dcb02a24..c87b496736e 100644 --- a/src/shared/verbs.c +++ b/src/shared/verbs.c @@ -50,7 +50,7 @@ int dispatch_verb(int argc, char *argv[], const Verb verbs[], void *userdata) { const Verb *verb; const char *name; unsigned i; - int left, r; + int left; assert(verbs); assert(verbs[0].dispatch); @@ -109,12 +109,6 @@ int dispatch_verb(int argc, char *argv[], const Verb verbs[], void *userdata) { return 0; } - if (verb->flags & VERB_MUST_BE_ROOT) { - r = must_be_root(); - if (r < 0) - return r; - } - if (name) return verb->dispatch(left, argv, userdata); else { diff --git a/src/shared/verbs.h b/src/shared/verbs.h index 010c0df3fdc..c5fe6cc7c58 100644 --- a/src/shared/verbs.h +++ b/src/shared/verbs.h @@ -8,7 +8,6 @@ typedef enum VerbFlags { VERB_DEFAULT = 1 << 0, VERB_ONLINE_ONLY = 1 << 1, - VERB_MUST_BE_ROOT = 1 << 2, } VerbFlags; typedef struct {