summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-23 22:11:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:52 -0500
commit772b70b478c0b1fc6bba769fb4e4ce2072109deb (patch)
tree69efe11b03419a990fc2cce0fbd2efd70083c39e /source3/passdb
parentb93126ea12f057497fd5d97e79e5ebac1bcfe1ef (diff)
downloadsamba-772b70b478c0b1fc6bba769fb4e4ce2072109deb.tar.gz
samba-772b70b478c0b1fc6bba769fb4e4ce2072109deb.tar.bz2
samba-772b70b478c0b1fc6bba769fb4e4ce2072109deb.zip
r21954: Someone misused a '!' instead of a '~' for a binary NOT
command. Jerry, Simo, please check. Jeremy. (This used to be commit 8ff76a9cb860b7fd451829f6d814ea1c6804f5af)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/passdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 1df94e0ee5..269b49e21c 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -718,7 +718,7 @@ NTSTATUS local_password_change(const char *user_name, int local_flags,
}
/* the 'other' acb bits not being changed here */
- other_acb = (pdb_get_acct_ctrl(sam_pass) & (!(ACB_WSTRUST|ACB_DOMTRUST|ACB_SVRTRUST|ACB_NORMAL)));
+ other_acb = (pdb_get_acct_ctrl(sam_pass) & (~(ACB_WSTRUST|ACB_DOMTRUST|ACB_SVRTRUST|ACB_NORMAL)));
if (local_flags & LOCAL_TRUST_ACCOUNT) {
if (!pdb_set_acct_ctrl(sam_pass, ACB_WSTRUST | other_acb, PDB_CHANGED) ) {
slprintf(err_str, err_str_len - 1, "Failed to set 'trusted workstation account' flags for user %s.\n", user_name);