#4091 Postfix & Ubuntu 12.04: Error - Perl execution failed

1.580
closed-fixed
Jamie Cameron
5
2014-08-14
2012-05-18
Anonymous
No

I believe I found a bug with Ubuntu 12.04.
Whenever I hit "Configuration Check" for the Postfix module I get this:

Error - Perl execution failed
Missing braces on \o{} in regex; marked by <-- HERE in m/\-\o <-- HERE / at /usr/share/webmin/postfix/postfinger.cgi line 199.

line 199 has:
if ( grep(/\-\o/,$postfinger)){

Thanks

Discussion

  • Jamie Cameron
    Jamie Cameron
    2012-05-18

    • status: open --> closed-fixed
     
  • Jamie Cameron
    Jamie Cameron
    2012-05-18

    Thanks for pointing this out - this will be fixed in the next Webmin release.

     
  • Christian
    Christian
    2012-05-31

    Hi,
    I think it has to do with perl.
    \o in regexp is new for \0** (* 0..7 octal) written as \o{**}
    So if you have old perl with no \o your "grep(/\-\o" is simply interpreted as:
    "grep(/\-o" the "\" in front of "o" is ignored.

    So if I changed /usr/libexec/webmin/postfix/postfinger.cgi to:
    199c199
    < if ( grep(/\-\o/,$postfinger)){
    ---
    > if ( grep(/\-o/,$postfinger)){

    and it works.

    Thanks
    Christian

     
  • Jamie Cameron
    Jamie Cameron
    2012-05-31

    Thanks for pointing that out!