Removed the incorrect and confusing facility argument specified with
openlog() as the correct facility will be specified with syslog()
anyway.
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 1615531..fee33b7 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -127,7 +127,7 @@
}
}
- openlog(name, option, (pri | LOG_FACMASK));
+ openlog(name, option, 0);
if (optind == argc) {
do {
/* read from stdin */
@@ -152,8 +152,8 @@
message = xrealloc(message, len);
if(!i)
message[0] = 0;
- else
- strcat(message, " ");
+ else
+ strcat(message, " ");
strcat(message, *argv);
argv++;
}