Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 02-26-2007, 04:43 AM
Moderator
 
Posts: 2,207
Default

Just like this : http://www.mail-archive.com/amavis-u.../msg07759.html ?

I've just made a search and the only occurence of Cmd.pm I found is in a subdirectory of zimbramon.
It shows the bad version (2.27).

Can you try the linked patch ?

Last edited by Klug; 02-26-2007 at 04:51 AM..
Reply With Quote
  #12 (permalink)  
Old 02-26-2007, 04:54 AM
Project Contributor
 
Posts: 116
Default

Quote:
Originally Posted by Klug View Post
Just like this : http://www.mail-archive.com/amavis-u.../msg07759.html ?
Can you try the linked patch ?
Three points!!! ;-)
Problem solved.

----
--- 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));
----
Reply With Quote
  #13 (permalink)  
Old 02-26-2007, 05:02 AM
Moderator
 
Posts: 2,207
Default

Excellent.

Bug is now in bugzilla with link to patch : http://bugzilla.zimbra.com/show_bug.cgi?id=14984

On my way to patch servers 8-/
Reply With Quote
  #14 (permalink)  
Old 02-26-2007, 05:08 AM
Project Contributor
 
Posts: 116
Default

Quote:
Originally Posted by Klug View Post
Excellent.

Bug is now in bugzilla with link to patch : http://bugzilla.zimbra.com/show_bug.cgi?id=14984

On my way to patch servers 8-/
This bug is really annoying. Thank you very much for your help, Klug!
Reply With Quote
  #15 (permalink)  
Old 02-26-2007, 06:20 AM
Active Member
 
Posts: 27
Default

I'm not very familiar with patching files, but i c/p the text into Cmd.pm.patch, use patch -p1 < Cmd.pm.patch and returns error ->
malformed patch at line 4: }
tried a couple modifications but didn't work . . . Any suggestions ? Or could you post the patch file ?

Thnx!


PS. Using 4.5.2 in Ubuntu 6.10
Reply With Quote
  #16 (permalink)  
Old 02-26-2007, 06:37 AM
Project Contributor
 
Posts: 116
Default

Quote:
Originally Posted by RaNd View Post
I'm not very familiar with patching files, but i c/p the text into Cmd.pm.patch, use patch -p1 < Cmd.pm.patch and returns error ->
malformed patch at line 4: }
Copy & paste file into a new file (for example, Cmd.diff) without "----" at the beginning and end of file.
And then,
>> patch -p1 Cmd.pm Cmd.pm.patch
Reply With Quote
  #17 (permalink)  
Old 02-26-2007, 06:57 AM
Active Member
 
Posts: 25
Default

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?
Reply With Quote
  #18 (permalink)  
Old 02-26-2007, 07:07 AM
Project Contributor
 
Posts: 116
Default

Quote:
Originally Posted by kdunphy View Post
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.
Attached Files
File Type: zip Cmd.zip (5.3 KB, 83 views)
Reply With Quote
  #19 (permalink)  
Old 02-26-2007, 07:57 AM
Moderator
 
Posts: 2,207
Default

IMHO, the fastest way to "patch" this file is to comment out the two lines containing "utf8" 8)

Code:
my $doUTF8 = eval { require utf8 };
and
Code:
utf8::encode($line) if $doUTF8;
Reply With Quote
  #20 (permalink)  
Old 02-27-2007, 06:24 AM
Active Member
 
Posts: 27
Default

OK, got it,! Fixed it anyway, just c/p for firefox to Putty was messing up the alignment . . .
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.