Quote:
Originally Posted by kdunphy I copied the text into a file called Cmd.diff without the ----- at the top and bottom. Here's what happened:
[zimbra@zimbra Net]$ patch -p1 Cmd.pm Cmd.diff
patching file Cmd.pm
patch: **** malformed patch at line 4: }
Suggestions? |
This is the patch (with three ---)
You have to apply it to /opt/zimbra/zimbramon/lib/Net
patch -p1 Cmd.pm Cmd.patch
*******Cmd.patch ***************
--- Net/Cmd.pm~ Fri Oct 27 13:08:07 2006
+++ Net/Cmd.pm Thu Feb 8 17:32:52 2007
@@ -22,6 +22,4 @@
}
-my $doUTF8 = eval { require utf8 };
-
$VERSION = "2.27";
@ISA = qw(Exporter);
@@ -395,6 +393,4 @@
my $arr = @_ == 1 && ref($_[0]) ? $_[0] : \@_;
my $line = join("" ,@$arr);
-
- utf8::encode($line) if $doUTF8;
return 0 unless defined(fileno($cmd));
******************************
Anyway, I attach with this file the modified Cmd.pm, but you will have to wait until moderator approve the message.