From ad511590d57b0ac1c5a3ac3b8e0b28bc0fbba649 Mon Sep 17 00:00:00 2001 From: krrishg Date: Sat, 18 Jul 2020 13:27:16 +0545 Subject: [PATCH] Change user and group --- config.def.h | 4 ++-- config.h | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 config.h diff --git a/config.def.h b/config.def.h index 9855e21..973da94 100644 --- a/config.def.h +++ b/config.def.h @@ -1,6 +1,6 @@ /* user and group to drop privileges to */ -static const char *user = "nobody"; -static const char *group = "nogroup"; +static const char *user = "krrish"; +static const char *group = "krrish"; static const char *colorname[NUMCOLS] = { [INIT] = "black", /* after initialization */ diff --git a/config.h b/config.h new file mode 100644 index 0000000..973da94 --- /dev/null +++ b/config.h @@ -0,0 +1,12 @@ +/* user and group to drop privileges to */ +static const char *user = "krrish"; +static const char *group = "krrish"; + +static const char *colorname[NUMCOLS] = { + [INIT] = "black", /* after initialization */ + [INPUT] = "#005577", /* during input */ + [FAILED] = "#CC3333", /* wrong password */ +}; + +/* treat a cleared input like a wrong password (color) */ +static const int failonclear = 1;