summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_user.h
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2007-09-20 10:23:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:00 -0500
commit21dd06471ba882bf0ba475d7f45e42876792093b (patch)
treec0a82a521a31734ffdc7a0bdce474a2dc8de616e /source4/libnet/libnet_user.h
parentd4f0d738f1ca3c4884a831a31bdd7c6de34b0961 (diff)
downloadsamba-21dd06471ba882bf0ba475d7f45e42876792093b.tar.gz
samba-21dd06471ba882bf0ba475d7f45e42876792093b.tar.bz2
samba-21dd06471ba882bf0ba475d7f45e42876792093b.zip
r25256: Fix missing field set in libnet_ModifyUser routine.
Submitted by Matthias Dieter Wallnoefer <mwallnoefer@yahoo.de> rafal (This used to be commit 4fe47e4f976f125537b6a9fc7b13b25efe3d73a6)
Diffstat (limited to 'source4/libnet/libnet_user.h')
-rw-r--r--source4/libnet/libnet_user.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/libnet/libnet_user.h b/source4/libnet/libnet_user.h
index 3bbe1cc65e..ece06f08fc 100644
--- a/source4/libnet/libnet_user.h
+++ b/source4/libnet/libnet_user.h
@@ -85,6 +85,12 @@ struct libnet_ModifyUser {
} \
}
+#define SET_FIELD_UINT32(new, current, mod, field, flag) \
+ if (current->field != new.field) { \
+ mod->field = new.field; \
+ mod->fields |= flag; \
+ }
+
struct libnet_UserInfo {
struct {