From 204859796b0c7f92f2a8f2dbb2ab04837739cc5a Mon Sep 17 00:00:00 2001
From: Benoit Mortier <benoit.mortier@opensides.be>
Date: Fri, 13 Jan 2017 16:49:31 +0100
Subject: [PATCH] Sonar fixes: Integer with leading zeros

Signed-off-by: Benoit Mortier <benoit.mortier@opensides.be>
---
 contrib/bin/fusiondirectory-setup | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/bin/fusiondirectory-setup b/contrib/bin/fusiondirectory-setup
index 547336320..cce851fbb 100644
--- a/contrib/bin/fusiondirectory-setup
+++ b/contrib/bin/fusiondirectory-setup
@@ -516,11 +516,11 @@ sub check_directories {
 
       # if $dir is one of the dirs that remains to root
       if ( grep (/.*$dir.*/, @root_config_dirs) ) {
-        check_rights($dir,"root","root",0755,1);
+        check_rights($dir,"root","root",755,1);
 
       # else if $dir is one of the dirs that remains to apache's user group, and the dir's owner is not root or the group is not the apache's user group, modifying owner
       } elsif ( grep ( /.*$dir.*/, @apache_config_dirs) ) {
-        check_rights($dir,"root",$apache_group,0770,1);
+        check_rights($dir,"root",$apache_group,770,1);
       }
   }
 }
@@ -530,7 +530,7 @@ sub check_config {
   my $apache_group = get_apache_group();
 
   # check config file
-  check_rights($fd_config,"root",$apache_group,0640,0) or die 'The config file does not exists!';
+  check_rights($fd_config,"root",$apache_group,640,0) or die 'The config file does not exists!';
 }
 
 ############################################################# Change install directories #################################################################################
-- 
GitLab