summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-12-11 16:55:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:48 -0500
commit4d03fc55df2a3253f5b5b3086264439b6a174340 (patch)
tree17a18c3f1d24d0e45c5d375dd951adba9c6acc45 /source3/utils
parent2c0114d2116488de195ca99a0f1d46d79a7bdbd6 (diff)
downloadsamba-4d03fc55df2a3253f5b5b3086264439b6a174340.tar.gz
samba-4d03fc55df2a3253f5b5b3086264439b6a174340.tar.bz2
samba-4d03fc55df2a3253f5b5b3086264439b6a174340.zip
r12182: Cosmetic cleanup
(This used to be commit 81c358b511457fbc6304845acb4bfbf1b4adf062)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_groupmap.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c
index 9e897d8efc..f12668a85a 100644
--- a/source3/utils/net_groupmap.c
+++ b/source3/utils/net_groupmap.c
@@ -87,19 +87,15 @@ static BOOL get_sid_from_input(DOM_SID *sid, char *input)
static void print_map_entry ( GROUP_MAP map, BOOL long_list )
{
- fstring string_sid;
- fstring group_type;
-
- decode_sid_name_use(group_type, map.sid_name_use);
- sid_to_string(string_sid, &map.sid);
-
if (!long_list)
- d_printf("%s (%s) -> %s\n", map.nt_name, string_sid, gidtoname(map.gid));
+ d_printf("%s (%s) -> %s\n", map.nt_name,
+ sid_string_static(&map.sid), gidtoname(map.gid));
else {
d_printf("%s\n", map.nt_name);
- d_printf("\tSID : %s\n", string_sid);
+ d_printf("\tSID : %s\n", sid_string_static(&map.sid));
d_printf("\tUnix group: %s\n", gidtoname(map.gid));
- d_printf("\tGroup type: %s\n", group_type);
+ d_printf("\tGroup type: %s\n",
+ decode_sid_name_use(map.sid_name_use));
d_printf("\tComment : %s\n", map.comment);
}