mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r12387: Make string_to_sid a little more silent.
Jeremy.
(This used to be commit 7ccff8071a
)
This commit is contained in:
parent
e53642a131
commit
894979c69b
@ -213,7 +213,7 @@ BOOL string_to_sid(DOM_SID *sidout, const char *sidstr)
|
||||
uint32 conv;
|
||||
|
||||
if ((sidstr[0] != 'S' && sidstr[0] != 's') || sidstr[1] != '-') {
|
||||
DEBUG(0,("string_to_sid: Sid %s does not start with 'S-'.\n", sidstr));
|
||||
DEBUG(3,("string_to_sid: Sid %s does not start with 'S-'.\n", sidstr));
|
||||
return False;
|
||||
}
|
||||
|
||||
@ -223,7 +223,7 @@ BOOL string_to_sid(DOM_SID *sidout, const char *sidstr)
|
||||
p = sidstr + 2;
|
||||
conv = (uint32) strtoul(p, &q, 10);
|
||||
if (!q || (*q != '-')) {
|
||||
DEBUG(0,("string_to_sid: Sid %s is not in a valid format.\n", sidstr));
|
||||
DEBUG(3,("string_to_sid: Sid %s is not in a valid format.\n", sidstr));
|
||||
return False;
|
||||
}
|
||||
sidout->sid_rev_num = (uint8) conv;
|
||||
|
Loading…
Reference in New Issue
Block a user