Commits

Shlomi Fish committed ce7e709

Bug fix: apparently the string is not entirely fully octal.

It can have a leading zero.

Comments (0)

Files changed (1)

config-inifiles/lib/Config/IniFiles.pm

 {
     my ($self, $mode) = @_;
 
-    if (not (defined($mode) && ($mode =~ m/\A[0-7]{3}\z/)))
+    if (not (defined($mode) && ($mode =~ m/[0-7]{3}/)))
     {
         return undef;
     }