git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6d94ee
)
Start handling Big Endian machines as well as little endian.
author
Richard Sharpe
<sharpe@samba.org>
Tue, 5 Nov 2002 01:29:29 +0000
(
01:29
+0000)
committer
Richard Sharpe
<sharpe@samba.org>
Tue, 5 Nov 2002 01:29:29 +0000
(
01:29
+0000)
(This used to be commit
8f45315b913a9574dfeedaadf5560d143b38ca05
)
source3/utils/profiles.c
patch
|
blob
|
history
diff --git
a/source3/utils/profiles.c
b/source3/utils/profiles.c
index c939af276de1655f3fe15c0e7b05eada6b80f935..fabc118d81a833aa0becc7c5927e1dfa1fdf03fe 100644
(file)
--- 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");