* [PATCH] whereis: fix missing newline on empty results
@ 2014-07-09 12:09 Andreas Henriksson
2014-07-14 13:52 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Henriksson @ 2014-07-09 12:09 UTC (permalink / raw)
To: util-linux; +Cc: Andreas Henriksson
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@fatal.se>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-14 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-09 12:09 [PATCH] whereis: fix missing newline on empty results Andreas Henriksson
2014-07-14 13:52 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox