1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

Start handling Big Endian machines as well as little endian.

(This used to be commit 8f45315b913a9574dfeedaadf5560d143b38ca05)
This commit is contained in:
Richard Sharpe 2002-11-05 01:29:29 +00:00
parent d6d94ee143
commit fd59cd4283

View File

@ -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");