diff options
author | Richard Sharpe <sharpe@samba.org> | 2005-02-10 18:27:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:37 -0500 |
commit | 5ba4fb5eb9da77d313b88f1437cedc30679bdd95 (patch) | |
tree | 1fe8d3ac03950fc10c19aef13f49894f4f9d8f56 /source3/utils/profiles.c | |
parent | b6c143a17f40f9b34da4f0aeb83b0180d5a198e0 (diff) | |
download | samba-5ba4fb5eb9da77d313b88f1437cedc30679bdd95.tar.gz samba-5ba4fb5eb9da77d313b88f1437cedc30679bdd95.tar.bz2 samba-5ba4fb5eb9da77d313b88f1437cedc30679bdd95.zip |
r5318: Fix a small problem in where we ignore the response from a SamrGetGroupsForUser
that says the user is in 0 groups, and we issue an RPC to LookupIds for 0 RIDs.
The printing that there are no groups the user is a member of might be overkill
in that it might upset existing scripts that don't expect that output.
(This used to be commit d3482e118f99002c0460291d41708fdf7708c41f)
Diffstat (limited to 'source3/utils/profiles.c')
-rw-r--r-- | source3/utils/profiles.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c index 6911341708..5b5cb7f07b 100644 --- a/source3/utils/profiles.c +++ b/source3/utils/profiles.c @@ -521,7 +521,7 @@ static void process_acl(ACL *acl, const char *prefix) int main(int argc, char *argv[]) { int opt; - int fd, start = 0; + int fd; char *base; struct stat sbuf; REGF_HDR *regf_hdr; @@ -608,10 +608,9 @@ int main(int argc, char *argv[]) * Now, mmap the file into memory, check the header and start * dealing with the records. We are interested in the sk record */ - start = 0; #ifdef HAVE_MMAP - base = mmap(&start, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + base = mmap(NULL, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); #else base = (char *)-1; errno = ENOSYS; |