verbs.c revision a16f96cd56c6ee251f69fdb2395ad0dcb51abac8
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2014 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <errno.h>
#include <getopt.h>
#include <stdbool.h>
#include <stddef.h>
#include "log.h"
#include "macro.h"
#include "string-util.h"
#include "verbs.h"
#include "virt.h"
const char *name;
unsigned i;
int left;
for (i = 0;; i++) {
bool found;
/* At the end of the list? */
if (name)
else
log_error("Requires operation parameter.");
return -EINVAL;
}
if (name)
else
if (found) {
break;
}
}
if (!name)
left = 1;
log_error("Too few arguments.");
return -EINVAL;
}
log_error("Too many arguments.");
return -EINVAL;
}
log_info("Running in chroot, ignoring request.");
return 0;
}
if (name)
else {
char* fake[2] = {
};
}
}