diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-03-07 17:29:38 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-07 18:36:46 +0000 |
commit | e40f408faeea204417bc46024590a07272eeda92 (patch) | |
tree | f34f000f67838b054ae238dd5eac73c3add74437 | |
parent | 2c9c0525ebda105f37e6a6eea2307db4cb2f0a73 (diff) | |
download | libguestfs-e40f408faeea204417bc46024590a07272eeda92.tar.gz libguestfs-e40f408faeea204417bc46024590a07272eeda92.tar.xz libguestfs-e40f408faeea204417bc46024590a07272eeda92.zip |
Hide stderr of bmptopng.
This program is noisy on stderr. Send that to /dev/null.
-rw-r--r-- | src/inspect_icon.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |