diff options
Diffstat (limited to 'src/inspect_icon.c')
-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) { |