diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-11-02 08:43:48 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-11-02 08:48:56 -0200 |
commit | 03e156efac94129f4b152e3561d39279e153aa7a (patch) | |
tree | 712564a34cbaf4947b8e519d3ecf90409ad81d76 /etc/inc | |
parent | 19b102161253ac33bdf26010e6e110d6e71cc06c (diff) | |
download | pfsense-03e156efac94129f4b152e3561d39279e153aa7a.zip pfsense-03e156efac94129f4b152e3561d39279e153aa7a.tar.gz |
Revert "Add conf_mount_rw calls on functions that changes user/groups. It fixes #3294"
This reverts commit fa757d146c85261b7e90d226c1aecd38089d7e20.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/auth.inc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index c4a3ae8..67fd8b1 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -485,8 +485,6 @@ function local_user_set(& $user) { function local_user_del($user) { global $debug; - conf_mount_rw(); - /* remove all memberships */ local_user_set_groups($user); @@ -514,8 +512,6 @@ function local_user_del($user) { /* Delete user from groups needs a call to write_config() */ local_group_del_user($user); - - conf_mount_ro(); } function local_user_set_password(& $user, $password) { @@ -621,8 +617,6 @@ function local_group_del_user($user) { function local_group_set($group, $reset = false) { global $debug; - conf_mount_rw(); - $group_name = $group['name']; $group_gid = $group['gid']; $group_members = "''"; @@ -647,23 +641,17 @@ function local_group_set($group, $reset = false) { log_error(sprintf(gettext("Running: %s"), $cmd)); mwexec($cmd); - conf_mount_ro(); - } function local_group_del($group) { global $debug; - conf_mount_rw(); - /* delete from group db */ $cmd = "/usr/sbin/pw groupdel {$group['name']}"; if($debug) log_error(sprintf(gettext("Running: %s"), $cmd)); mwexec($cmd); - - conf_mount_ro(); } function ldap_test_connection($authcfg) { |