diff --git a/misc/ext.d/misc.sh.in b/misc/ext.d/misc.sh.in index ccb2cba3b..f62ba899e 100644 --- a/misc/ext.d/misc.sh.in +++ b/misc/ext.d/misc.sh.in @@ -22,8 +22,8 @@ do_view_action() { file "${MC_EXT_FILENAME}" && nm -C "${MC_EXT_FILENAME}" ;; lib) - gplib -t "${MC_EXT_FILENAME}" || >&2 | \ - @PERL@ -e '@a=split /[\s\t]+/, <>; printf ("%-30s | %10d | %s.%s.%02d | %s\n", $a[0], ($a[1]*1),$a[7], lc($a[4]), $a[5], $a[6]);' + gplib -t "${MC_EXT_FILENAME}" | \ + @PERL@ -e 'while (<>) { @a=split /[\s\t]+/, $_; printf ("%-30s | %10d | %s.%s.%02d | %s\n", $a[0], ($a[1]*1),$a[7], lc($a[4]), $a[5], $a[6]);}' ;; so) file "${MC_EXT_FILENAME}" && nm -C -D "${MC_EXT_FILENAME}" diff --git a/src/vfs/extfs/helpers/ulib.in b/src/vfs/extfs/helpers/ulib.in index cabcc4685..418611f5c 100644 --- a/src/vfs/extfs/helpers/ulib.in +++ b/src/vfs/extfs/helpers/ulib.in @@ -73,7 +73,7 @@ sub mc_ulib_fs_copyout my($module, $fname) = @_; my $tmpdir = $ENV{'TMPDIR'}; - $tmpdir = '/tmp' if ($tmpdir eq ''); + $tmpdir = '/tmp' if (! defined $tmpdir or $tmpdir eq ''); open(PIPE, "$gplib -tq $archive |") || die("Error in: $gplib -tq");