The Samba-Bugzilla – Attachment 1379 Details for
Bug 3006
utils/profiles.c: "const char *" incompatible with "char *"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
change sid_str and lstr to "const char *"
profiles.patch (text/plain), 777 bytes, created by
Jason Mader (mail bounces back)
on 2005-08-15 11:36:11 UTC
(
hide
)
Description:
change sid_str and lstr to "const char *"
Filename:
MIME Type:
Creator:
Jason Mader (mail bounces back)
Created:
2005-08-15 11:36:11 UTC
Size:
777 bytes
patch
obsolete
>Index: utils/profiles.c >=================================================================== >--- utils/profiles.c (revision 9303) >+++ utils/profiles.c (working copy) >@@ -417,10 +417,10 @@ > * Quick and dirty to read a SID in S-1-5-21-x-y-z-rid format and > * construct a DOM_SID > */ >-static int get_sid(DOM_SID *sid, const unsigned char *sid_str) >+static int get_sid(DOM_SID *sid, const char *sid_str) > { > int i = 0, auth; >- const unsigned char *lstr; >+ const char *lstr; > > if (strncmp(sid_str, "S-1-5", 5)) { > fprintf(stderr, "Does not conform to S-1-5...: %s\n", sid_str); >@@ -447,7 +447,7 @@ > > SIVAL(&sid->sub_auths[i], 0, auth); > i++; >- lstr = (const unsigned char *)strchr(lstr + 1, '-'); >+ lstr = strchr(lstr + 1, '-'); > } > > return 1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3006
: 1379