summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-07-15 13:58:08 +0000
committerErmal <eri@pfsense.org>2013-07-15 13:58:08 +0000
commit1ed5aaa83a48221f4ebd07bf9e587e36e84fb007 (patch)
tree73e4679e9da447af843eb5d8dc4b793357f8158e /etc
parent3487a5c26feb4233cb5826a88bd3ca9a4807c287 (diff)
downloadpfsense-1ed5aaa83a48221f4ebd07bf9e587e36e84fb007.zip
pfsense-1ed5aaa83a48221f4ebd07bf9e587e36e84fb007.tar.gz
Ignore errors/warnings from these calls
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index a70db8e..059307f 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -461,18 +461,18 @@ function local_user_set(& $user) {
mkdir($user_home, 0700);
mwexec("/bin/cp /root/.* {$home_base}/", true);
}
- chown($user_home, $user_name);
- chgrp($user_home, $user_group);
+ @chown($user_home, $user_name);
+ @chgrp($user_home, $user_group);
/* write out ssh authorized key file */
if($user['authorizedkeys']) {
if (!is_dir("{$user_home}/.ssh")) {
- mkdir("{$user_home}/.ssh", 0700);
- chown("{$user_home}/.ssh", $user_name);
+ @mkdir("{$user_home}/.ssh", 0700);
+ @chown("{$user_home}/.ssh", $user_name);
}
$keys = base64_decode($user['authorizedkeys']);
- file_put_contents("{$user_home}/.ssh/authorized_keys", $keys);
- chown("{$user_home}/.ssh/authorized_keys", $user_name);
+ @file_put_contents("{$user_home}/.ssh/authorized_keys", $keys);
+ @chown("{$user_home}/.ssh/authorized_keys", $user_name);
} else
unlink_if_exists("{$user_home}/.ssh/authorized_keys");
OpenPOWER on IntegriCloud