net rpc samsync patch
Ronan Waide
waider at waider.ie
Mon Mar 31 09:15:11 GMT 2003
Small patch to stop net rpc samsync from copying an empty comment when
syncing group data.
Cheers,
Waider.
Index: source/utils/net_rpc_samsync.c
===================================================================
RCS file: /cvsroot/samba/source/utils/net_rpc_samsync.c,v
retrieving revision 1.20
diff -u -r1.20 net_rpc_samsync.c
--- source/utils/net_rpc_samsync.c 30 Mar 2003 16:46:28 -0000 1.20
+++ source/utils/net_rpc_samsync.c 31 Mar 2003 09:09:46 -0000
@@ -521,7 +521,10 @@
map.sid = group_sid;
map.sid_name_use = SID_NAME_DOM_GRP;
fstrcpy(map.nt_name, name);
- fstrcpy(map.comment, comment);
+
+ if (delta->hdr_grp_desc.buffer) {
+ fstrcpy(map.comment, comment);
+ }
map.priv_set.count = 0;
map.priv_set.set = NULL;
--
waider at waider.ie / Yes, it /is/ very personal of me.
"it's this new keyboard. damn thing types faster than i do. i wish i knew
where my old one went. it was connected to the computer when i went to bed
last night." - Nikolai Kingsley
More information about the samba-technical
mailing list