]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon: append a dot after process title coverity_scan
authorVincent Bernat <vincent@bernat.im>
Sat, 19 Mar 2016 18:30:10 +0000 (19:30 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 19 Mar 2016 18:30:10 +0000 (19:30 +0100)
It seems that systemd is eating one character. Add a dot for padding.

src/daemon/lldpd.c
src/daemon/priv.c

index b0c93ccd3fe09e7a31bdf0235f6be7851ba0f91f..829520a46374e4dd8c32c0e1ab276412ab0281e4 100644 (file)
@@ -320,11 +320,11 @@ lldpd_count_neighbors(struct lldpd *cfg)
        }
        neighbors--;
        if (neighbors == 0)
-               setproctitle("no neighbor");
+               setproctitle("no neighbor.");
        else if (neighbors == 1 && neighbor && *neighbor != '\0')
-               setproctitle("connected to %s", neighbor);
+               setproctitle("connected to %s.", neighbor);
        else
-               setproctitle("%d neighbor%s", neighbors,
+               setproctitle("%d neighbor%s.", neighbors,
                    (neighbors > 1)?"s":"");
 #endif
        lldpd_display_neighbors(cfg);
index 321e365bdf8a2181013b4520ce99174950871a66..c37685a0fc0b180f14cc17ab9770608a965bea12 100644 (file)
@@ -406,7 +406,7 @@ priv_loop(int privileged, int once)
        struct dispatch_actions *a;
 
 #ifdef ENABLE_PRIVSEP
-       setproctitle("monitor");
+       setproctitle("monitor.");
 #ifdef USE_SECCOMP
        if (priv_seccomp_init(privileged, monitored) != 0)
           fatal("privsep", "cannot continue without seccomp setup");