mirror of
https://github.com/troglobit/finit.git
synced 2026-10-10 16:52:39 +07:00
Handle rare warning when registering configuration changes
2023-11-13T04:02:23 [WRN]: conf_change_act():failed registering /etc/finit.conf/ event mask 00000004: Not a directory Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+2
-1
@@ -1422,7 +1422,8 @@ static int conf_change_act(char *dir, char *name, uint32_t mask)
|
||||
struct conf_change *node;
|
||||
char *rp = NULL;
|
||||
|
||||
if (name[0])
|
||||
/* Check for actual printable characters, sometimes STX */
|
||||
if (name[0] && name[0] >= ' ')
|
||||
paste(fn, sizeof(fn), dir, name);
|
||||
else
|
||||
strlcpy(fn, dir, sizeof(fn));
|
||||
|
||||
Reference in New Issue
Block a user