|
|
|
@ -11,13 +11,17 @@ static const char *colorname[NUMCOLS] = {
|
|
|
|
|
/* treat a cleared input like a wrong password (color) */
|
|
|
|
|
static const int failonclear = 1;
|
|
|
|
|
|
|
|
|
|
/* length of entries in scom */
|
|
|
|
|
static const int entrylen = 1;
|
|
|
|
|
|
|
|
|
|
/* struct for secret passwords and commands */
|
|
|
|
|
struct secretpass {
|
|
|
|
|
char const *pass;
|
|
|
|
|
char const *command;
|
|
|
|
|
} scom = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* list of secret passwords and their commands */
|
|
|
|
|
static const struct secretpass scom[1] = {
|
|
|
|
|
/* Password command */
|
|
|
|
|
"shutdown", "sudo shutdown -h now"
|
|
|
|
|
};
|
|
|
|
|
{"shutdown", "sudo shutdown -h now"},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* length of entries in scom */
|
|
|
|
|
static const int entrylen = 1;
|
|
|
|
|