From e40f408faeea204417bc46024590a07272eeda92 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 7 Mar 2012 17:29:38 +0000 Subject: Hide stderr of bmptopng. This program is noisy on stderr. Send that to /dev/null. --- src/inspect_icon.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/inspect_icon.c b/src/inspect_icon.c index 293a4ab2..efaeac3f 100644 --- a/src/inspect_icon.c +++ b/src/inspect_icon.c @@ -437,7 +437,7 @@ icon_windows_xp (guestfs_h *g, struct inspect_fs *fs, const char *explorer, cmd = safe_asprintf (g, WRESTOOL " -x --type=2 --name=143 %s | " - BMPTOPNM " | " PNMTOPNG " > %s", + BMPTOPNM " 2>/dev/null | " PNMTOPNG " > %s", explorer, pngfile); r = system (cmd); if (r == -1 || WEXITSTATUS (r) != 0) { @@ -472,7 +472,8 @@ icon_windows_7 (guestfs_h *g, struct inspect_fs *fs, const char *explorer, cmd = safe_asprintf (g, WRESTOOL " -x --type=2 --name=6801 %s | " - BMPTOPNM " | " PAMCUT " -bottom 54 | " PNMTOPNG " > %s", + BMPTOPNM " 2>/dev/null | " PAMCUT " -bottom 54 | " + PNMTOPNG " > %s", explorer, pngfile); r = system (cmd); if (r == -1 || WEXITSTATUS (r) != 0) { -- cgit