Running "whereis foo.bar.quux" previously resulted in printing the "foo.bar:" pattern prefix without any newline following it. Signed-off-by: Andreas Henriksson <andreas@xxxxxxxx> --- misc-utils/whereis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index ba83b15..dc7406b 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -430,7 +430,7 @@ static void lookup(const char *pattern, struct wh_dirlist *ls, int want) free(wait); - if ((count && !uflag) || (uflag && count > 1)) + if (!uflag || (uflag && count > 1)) putchar('\n'); return; } -- 2.0.0 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html