From a9923d64c875e46ea77ddbae1ccaba808f7139d0 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 17 Mar 2012 10:49:13 -0700 Subject: [PATCH] Fix error message to not always say 'bad file descriptor' --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 358a470cd8..dac867bfe2 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -8230,10 +8230,10 @@ sub open_tempfile else { $main::open_temphandles{$fh} = $file; } - binmode($fh); if (!$ex && !$noerror) { &error(&text("efileopen", $file, $!)); } + binmode($fh); return $ex; } elsif ($file =~ /^>\s*(([a-zA-Z]:)?\/.*)$/ && $notemp) {