From fd59cd42833c0bce9460d40ba6437eb04d48405c Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Tue, 5 Nov 2002 01:29:29 +0000 Subject: Start handling Big Endian machines as well as little endian. (This used to be commit 8f45315b913a9574dfeedaadf5560d143b38ca05) --- source3/utils/profiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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"); -- cgit