mirror of
https://github.com/troglobit/finit.git
synced 2026-09-30 21:13:01 +07:00
Merge branch 'asan'
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -37,7 +37,8 @@ jobs:
|
||||
run: |
|
||||
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \
|
||||
--enable-x11-common-plugin --enable-testserv-plugin --with-watchdog \
|
||||
--with-keventd
|
||||
--with-keventd \
|
||||
CFLAGS="-fsanitize=address -ggdb"
|
||||
make -j3 clean
|
||||
make -j3 V=1
|
||||
- name: Install to /tmp
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
|
||||
make distclean
|
||||
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \
|
||||
--enable-x11-common-plugin --with-watchdog --with-keventd
|
||||
--enable-x11-common-plugin --with-watchdog --with-keventd \
|
||||
CFLAGS='-fsanitize=address -ggdb'
|
||||
make -j17 clean check
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
AC_INIT([Finit], [4.12], [https://github.com/troglobit/finit/issues],
|
||||
AC_INIT([Finit], [4.13-pre], [https://github.com/troglobit/finit/issues],
|
||||
[finit], [https://troglobit.com/projects/finit/])
|
||||
AC_CONFIG_AUX_DIR(aux)
|
||||
AM_INIT_AUTOMAKE([1.11 foreign dist-xz subdir-objects])
|
||||
|
||||
+12
-15
@@ -767,27 +767,25 @@ static int plugins_list(char *arg)
|
||||
*/
|
||||
char *runlevel_string(int currlevel, int levels)
|
||||
{
|
||||
static char lvl[21];
|
||||
static char lvl[32];
|
||||
int i = INIT_LEVEL;
|
||||
int pos = 1;
|
||||
|
||||
memset(lvl, 0, sizeof(lvl));
|
||||
lvl[0] = '[';
|
||||
strlcpy(lvl, "[", sizeof(lvl));
|
||||
|
||||
do {
|
||||
if (ISSET(levels, i)) {
|
||||
if (!plain && currlevel == i)
|
||||
pos = strlcat(lvl, "\e[1m", sizeof(lvl));
|
||||
|
||||
if (i == INIT_LEVEL)
|
||||
lvl[pos++] = 'S';
|
||||
else
|
||||
lvl[pos++] = '0' + i;
|
||||
char l[2] = { '0' + i, 0 };
|
||||
|
||||
if (!plain && currlevel == i)
|
||||
pos = strlcat(lvl, "\e[0m", sizeof(lvl));
|
||||
strlcat(lvl, "\e[1m", sizeof(lvl));
|
||||
|
||||
strlcat(lvl, i == INIT_LEVEL ? "S" : l, sizeof(lvl));
|
||||
|
||||
|
||||
if (!plain && currlevel == i)
|
||||
strlcat(lvl, "\e[0m", sizeof(lvl));
|
||||
} else {
|
||||
lvl[pos++] = '-';
|
||||
strlcat(lvl, "-", sizeof(lvl));
|
||||
}
|
||||
|
||||
/* XXX: ugly hack to get order right: S0123456789 */
|
||||
@@ -798,8 +796,7 @@ char *runlevel_string(int currlevel, int levels)
|
||||
} while (i < INIT_LEVEL);
|
||||
|
||||
|
||||
lvl[pos++] = ']';
|
||||
lvl[pos] = 0;
|
||||
strlcat(lvl, "]", sizeof(lvl));
|
||||
|
||||
return lvl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user