aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-05-19 19:59:06 -0700
committerMarcello Coutinho <marcellocoutinho@gmail.com>2012-05-19 19:59:06 -0700
commit39b6ec0c06b535cd00ec46cd4763123dd5663ff0 (patch)
tree40bf7e37e8d2311e47b0d72dfb549167b6185186
parent354c61c9d7474eb72a257c796080785e733bf24f (diff)
parentab269da35ad9a8727f30f94e3e5c9feafdbb0c36 (diff)
downloadpfsense-packages-39b6ec0c06b535cd00ec46cd4763123dd5663ff0.tar.gz
pfsense-packages-39b6ec0c06b535cd00ec46cd4763123dd5663ff0.tar.bz2
pfsense-packages-39b6ec0c06b535cd00ec46cd4763123dd5663ff0.zip
Merge pull request #250 from namezero111111/patch-3
Fixed wrong call to chgrp & chown
-rw-r--r--config/sshdcond/sshdcond.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/sshdcond/sshdcond.inc b/config/sshdcond/sshdcond.inc
index cd9d8018..2caa39cc 100644
--- a/config/sshdcond/sshdcond.inc
+++ b/config/sshdcond/sshdcond.inc
@@ -119,8 +119,8 @@ function sshdcond_custom_php_write_config(){
//apply file permission if option is ChrootDirectory
if ($sshd['sshdoption']=="ChrootDirectory" && file_exists($sshd['sshdvalue'])){
- chown('root',$sshd['sshdvalue']);
- chgrp('operator',$sshd['sshdvalue']);
+ chown($sshd['sshdvalue'], 'root');
+ chgrp($sshd['sshdvalue'], 'operator');
}
}
}