Akopia Akopia Services

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

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



******    message to minivend-users from 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+$/;
-
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: