Also we don't need fflush() in non-verbose case.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
if (set_arch(arch, options, 0))
err(EXIT_FAILURE, _("failed to set personality to %s"), arch);
- /* flush all output streams before exec */
- fflush(NULL);
+ if (verbose) {
+ printf(_("Execute command `%s'.\n"), argc ? argv[0] : "/bin/sh");
+ /* flush all output streams before exec */
+ fflush(NULL);
+ }
if (!argc) {
execl("/bin/sh", "-sh", NULL);
Switching on STICKY_TIMEOUTS.
Switching on ADDR_LIMIT_3GB.
Switching on UNAME26.
+Execute command `echo'.
success