diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-05-23 18:25:26 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-05-23 18:25:26 +0000 |
commit | 507b0901057e38083a1c7f630a95137dcc428331 (patch) | |
tree | c841b53a62d4a8003a93cb55b4112c978f3d2680 | |
parent | 0212e65bf1a73a2616bf7ee387f511d5222e3bf7 (diff) | |
download | drakx-507b0901057e38083a1c7f630a95137dcc428331.tar drakx-507b0901057e38083a1c7f630a95137dcc428331.tar.gz drakx-507b0901057e38083a1c7f630a95137dcc428331.tar.bz2 drakx-507b0901057e38083a1c7f630a95137dcc428331.tar.xz drakx-507b0901057e38083a1c7f630a95137dcc428331.zip |
(cat_) we never pass a second arg
-rwxr-xr-x | rescue/tree/sbin/fakeshutdown | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rescue/tree/sbin/fakeshutdown b/rescue/tree/sbin/fakeshutdown index fa4d2acc9..cfc6df4dc 100755 --- a/rescue/tree/sbin/fakeshutdown +++ b/rescue/tree/sbin/fakeshutdown @@ -13,8 +13,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # -sub cat_ { local *F; open F, $_[0] or $_[1] ? die "cat of file $_[0] failed: $!\n" : return; my @l = <F>; wantarray ? @l : join '', @l } - +sub cat_ { local *F; open F, $_[0] or die "cat of file $_[0] failed: $!\n"; my @l = <F>; wantarray ? @l : join '', @l } print "\n"; |