summary refs log tree commit diff
diff options
context:
space:
mode:
authorDuncan Overbruck <mail@duncano.de>2021-02-28 16:15:15 +0100
committerDuncan Overbruck <github@duncano.de>2021-03-13 23:55:15 +0100
commit3db879ba2364eb185d9ad38c1aa7139806dd19c9 (patch)
tree9757b431ea8ca3b69e31a5ad6adce8755104a5a6
parentd5fd7d1ff201db49c10704db0d51cdbb23bc177b (diff)
downloadrunit-void-3db879ba2364eb185d9ad38c1aa7139806dd19c9.tar.gz
runit-void-3db879ba2364eb185d9ad38c1aa7139806dd19c9.tar.xz
runit-void-3db879ba2364eb185d9ad38c1aa7139806dd19c9.zip
vlogger: pass empty tag to /etc/vlogger if tag is NULL
-rw-r--r--vlogger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlogger.c b/vlogger.c
index 102bbdb..e61f601 100644
--- a/vlogger.c
+++ b/vlogger.c
@@ -135,7 +135,7 @@ main(int argc, char *argv[])
 			if (cp->c_val == facility)
 				sfacility = cp->c_name;
 		}
-		execl("/etc/vlogger", argv0, tag, slevel, sfacility, (char *)0);
+		execl("/etc/vlogger", argv0, tag ? tag : "", slevel, sfacility, (char *)0);
 		fprintf(stderr, "vlogger: exec: %s\n", strerror(errno));
 		exit(1);
 	}