git.samba.org
/
gd
/
samba
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r18703: Fix the annoying effect that happens when nscd is running:
[gd/samba/.git]
/
source3
/
utils
/
net_rpc_samsync.c
diff --git
a/source3/utils/net_rpc_samsync.c
b/source3/utils/net_rpc_samsync.c
index 0b54a6c97fc502b7d6e19fed48b2612ba04f16c4..1337c11eca1500b2250b7d8bf9f161bb33799bec 100644
(file)
--- a/
source3/utils/net_rpc_samsync.c
+++ b/
source3/utils/net_rpc_samsync.c
@@
-508,6
+508,9
@@
static NTSTATUS fetch_account_info(uint32 rid, SAM_ACCOUNT_INFO *delta)
add_ret = smbrun(add_script,NULL);
DEBUG(add_ret ? 0 : 1,("fetch_account: Running the command `%s' "
"gave %d\n", add_script, add_ret));
+ if (add_ret == 0) {
+ smb_nscd_flush_user_cache();
+ }
}
/* try and find the possible unix account again */