summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-11-05 01:29:29 +0000
committerRichard Sharpe <sharpe@samba.org>2002-11-05 01:29:29 +0000
commitfd59cd42833c0bce9460d40ba6437eb04d48405c (patch)
tree2ac3c9b7da629c6aa4b738d3948a9fa00e5e9bd0
parentd6d94ee1438d4223ea459c9cc1fa00b7df6df1a2 (diff)
downloadsamba-fd59cd42833c0bce9460d40ba6437eb04d48405c.tar.gz
samba-fd59cd42833c0bce9460d40ba6437eb04d48405c.tar.bz2
samba-fd59cd42833c0bce9460d40ba6437eb04d48405c.zip
Start handling Big Endian machines as well as little endian.
(This used to be commit 8f45315b913a9574dfeedaadf5560d143b38ca05)
-rw-r--r--source3/utils/profiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index c939af276d..fabc118d81 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -445,7 +445,7 @@ int get_sid(DOM_SID *sid, char *sid_str)
return 1;
}
- sid->sub_auths[i++] = auth;
+ SIVAL(&sid->sub_auths[i++], 0, auth);
lstr = strchr(lstr + 1, '-');
}
@@ -473,7 +473,7 @@ void print_sid(DOM_SID *sid)
for (i = 0; i < comps; i++) {
- fprintf(stdout, "-%u", sid->sub_auths[i]);
+ fprintf(stdout, "-%u", IVAL(&sid->sub_auths[i],0));
}
fprintf(stdout, "\n");