Followup to previous commit. Suggested by @poettering.
Reindented the `verbs[]` tables to match the apparent previous
whitespace rules (indent to one flag, allow multiple flags to overflow?).
return -EINVAL;
}
- if ((verb->flags & VERB_NOCHROOT) && running_in_chroot_or_offline()) {
+ if ((verb->flags & VERB_ONLINE_ONLY) && running_in_chroot_or_offline()) {
if (name)
log_info("Running in chroot, ignoring request: %s", name);
else
return 0;
}
- if (verb->flags & VERB_MUSTBEROOT) {
+ if (verb->flags & VERB_MUST_BE_ROOT) {
r = must_be_root();
if (r < 0)
return r;
#define VERB_ANY ((unsigned) -1)
typedef enum VerbFlags {
- VERB_DEFAULT = 1 << 0,
- VERB_NOCHROOT = 1 << 1,
- VERB_MUSTBEROOT = 1 << 2,
+ VERB_DEFAULT = 1 << 0,
+ VERB_ONLINE_ONLY = 1 << 1,
+ VERB_MUST_BE_ROOT = 1 << 2,
} VerbFlags;
typedef struct {