diff options
author | Duncaen <mail@duncano.de> | 2018-06-22 14:56:07 +0200 |
---|---|---|
committer | Duncaen <mail@duncano.de> | 2018-06-22 14:56:07 +0200 |
commit | 3095ba6629084a92542631fe8402070e5f089161 (patch) | |
tree | 078c292398410fa95d9acc21a530c17a453eb06b | |
parent | a2320e50b375576fbe0e72636c4900bcc4704b80 (diff) | |
download | runit-void-3095ba6629084a92542631fe8402070e5f089161.tar.gz runit-void-3095ba6629084a92542631fe8402070e5f089161.tar.xz runit-void-3095ba6629084a92542631fe8402070e5f089161.zip |
vlogger: add default tag
-rw-r--r-- | vlogger.c | 5 |
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)); |