summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid O'Neill <dmo@samba.org>2000-12-06 17:08:43 +0000
committerDavid O'Neill <dmo@samba.org>2000-12-06 17:08:43 +0000
commit136a08efbdef62bc9b0c4eec857f6405f5f04b51 (patch)
treef3ef1a6a31c98a009f7960f833dd57dad72401b5
parent60ba399a60f65f03d6e1b3200d1db0742f23eb85 (diff)
downloadsamba-136a08efbdef62bc9b0c4eec857f6405f5f04b51.tar.gz
samba-136a08efbdef62bc9b0c4eec857f6405f5f04b51.tar.xz
samba-136a08efbdef62bc9b0c4eec857f6405f5f04b51.zip
Remove the need for 'done:' vs. 'done: ;', as it appears both of these make
certain compilers unhappy.
-rw-r--r--source/rpc_server/srv_samr.c45
1 files changed, 21 insertions, 24 deletions
diff --git a/source/rpc_server/srv_samr.c b/source/rpc_server/srv_samr.c
index 4ff2d47ec89..3480907ecda 100644
--- a/source/rpc_server/srv_samr.c
+++ b/source/rpc_server/srv_samr.c
@@ -771,38 +771,35 @@ static BOOL samr_reply_enum_dom_aliases(SAMR_Q_ENUM_DOM_ALIASES *q_u,
num_entries++;
}
}
- else if (strequal(sid_str, sam_sid_str))
+ else if (strequal(sid_str, sam_sid_str) && !lp_hide_local_users())
{
- char *name;
- char *sep;
-
- if (lp_hide_local_users()) goto done;
+ char *name;
+ char *sep;
- sep = lp_winbind_separator();
+ sep = lp_winbind_separator();
- /* local aliases */
- /* we return the UNIX groups here. This seems to be the right */
- /* thing to do, since NT member servers return their local */
- /* groups in the same situation. */
- setgrent();
+ /* local aliases */
+ /* we return the UNIX groups here. This seems to be the right */
+ /* thing to do, since NT member servers return their local */
+ /* groups in the same situation. */
+ setgrent();
- while (num_entries < MAX_SAM_ENTRIES && ((grp = getgrent()) != NULL))
- {
- name = grp->gr_name;
+ while (num_entries < MAX_SAM_ENTRIES && ((grp = getgrent()) != NULL))
+ {
+ name = grp->gr_name;
- /* Don't return winbind groups as they are not local! */
+ /* Don't return winbind groups as they are not local! */
- if (strchr(name, *sep) != NULL) {
- continue;
- }
+ if (strchr(name, *sep) != NULL) {
+ continue;
+ }
- init_unistr2(&(pass[num_entries].uni_user_name), name, strlen(name)+1);
- pass[num_entries].user_rid = pdb_gid_to_group_rid(grp->gr_gid);
- num_entries++;
- }
+ init_unistr2(&(pass[num_entries].uni_user_name), name, strlen(name)+1);
+ pass[num_entries].user_rid = pdb_gid_to_group_rid(grp->gr_gid);
+ num_entries++;
+ }
- endgrent();
- done:
+ endgrent();
}
init_samr_r_enum_dom_aliases(&r_e, num_entries, pass, r_e.status);