about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2018-06-22 14:56:07 +0200
committerDuncaen <mail@duncano.de>2018-06-22 14:56:07 +0200
commit3095ba6629084a92542631fe8402070e5f089161 (patch)
tree078c292398410fa95d9acc21a530c17a453eb06b
parenta2320e50b375576fbe0e72636c4900bcc4704b80 (diff)
downloadrunit-void-3095ba6629084a92542631fe8402070e5f089161.tar.gz
runit-void-3095ba6629084a92542631fe8402070e5f089161.tar.xz
runit-void-3095ba6629084a92542631fe8402070e5f089161.zip
vlogger: add default tag
-rw-r--r--vlogger.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/vlogger.c b/vlogger.c
index debad36..a3f7a08 100644
--- a/vlogger.c
+++ b/vlogger.c
@@ -77,7 +77,7 @@ int
 main(int argc, char *argv[])
 {
 	char *p, *argv0;
-	char *tag = NULL;
+	char *tag = "vlogger";
 	int c;
 	int facility = LOG_DAEMON;
 	int level = LOG_INFO;
@@ -106,9 +106,6 @@ usage:
 			exit(1);
 		}
 
-	if (tag == NULL)
-		goto usage;
-
 	if (access("/etc/vlogger", X_OK) != -1) {
 		execl("/etc/vlogger", argv0, tag, (char *)0);
 		fprintf(stderr, "vlogger: exec: %s\n", strerror(errno));