busybox-1.0.1-rc1.patch
[oweals/busybox.git] / busybox / sysklogd / logger.c
index 16155316fbd04f66f8da7033b09d6c16561ed5a2..fee33b788e6ada0eba7feb6d55f5dcbc8e1d8dc0 100644 (file)
@@ -127,7 +127,7 @@ extern int logger_main(int argc, char **argv)
                }
        }
 
-       openlog(name, option, (pri | LOG_FACMASK));
+       openlog(name, option, 0);
        if (optind == argc) {
                do {
                        /* read from stdin */
@@ -152,8 +152,8 @@ extern int logger_main(int argc, char **argv)
                        message = xrealloc(message, len);
                        if(!i)
                                message[0] = 0;
-                        else
-                       strcat(message, " ");
+                       else
+                               strcat(message, " ");
                        strcat(message, *argv);
                        argv++;
                }