1
0
Fork 0
mirror of https://github.com/pygos/init.git synced 2024-12-22 07:10:49 +01:00

Add RDSVC_NO_DESC flag

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-06-16 20:50:58 +02:00
parent 60efd9dc33
commit 0d985a7430
2 changed files with 4 additions and 1 deletions

View file

@ -36,6 +36,7 @@ enum {
RDSVC_NO_EXEC = 0x02, /* do not store executable script */
RDSVC_NO_CTTY = 0x04, /* do not store the controlling tty */
RDSVC_NO_DEPS = 0x08, /* do not store dependencies */
RDSVC_NO_DESC = 0x10, /* do not store description */
};
enum {

View file

@ -47,7 +47,9 @@ static int try_pack_argv(char *str, rdline_t *rd)
static int svc_desc(void *user, char *arg, rdline_t *rd, int flags)
{
service_t *svc = user;
(void)flags;
if (flags & RDSVC_NO_DESC)
return 0;
if (try_unescape(arg, rd))
return -1;