Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] MV 4.04 - Trivial patch for Config.pm to properly handle octal values



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting Randy Moore (ramoore@atlantech.net):
> 
> Hello,
> 
> This is a trivial patch to /lib/Vend/Config.pm to properly handle the use 
> of octal values in the config files.
> 
> I ran into a problem when I tried to add the following to minivend.cfg:
> SocketPerms 0660
> 
> 
> --- Config.orig.pm      Wed May 17 13:35:43 2000
> +++ Config.pm   Wed May 17 13:36:09 2000
> @@ -1729,5 +1729,5 @@
>       my($var, $value) = @_;
>          $value = hex($value) if $value =~ /^0x[\dA-Fa-f]+$/;
> -       $value = octal($value) if $value =~ /^0[0-7]+$/;
> +       $value = oct($value) if $value =~ /^0[0-7]+$/;
>       config_error("The $var directive (now set to '$value') must be an 
> integer\n")
>                  unless $value =~ /^\d+$/;

I love fixes! Thanks, Randy.

-- 
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>

If you like what you're gettin', keep doin' what you're doin'. -- Hector
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: