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:
b0654b3
)
s3:torture: fix password timestamp checks on NetBSD
author
Björn Jacke
<bj@sernet.de>
Wed, 3 Jun 2009 15:39:50 +0000
(17:39 +0200)
committer
Björn Jacke
<bj@sernet.de>
Wed, 3 Jun 2009 15:50:01 +0000
(17:50 +0200)
The Open Group says:
"The useconds argument [of usleep] must be less than 1,000,000."
NetBSD takes this seriously. usleep of more than 999999 are effectless.
source4/torture/rpc/samr.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/samr.c
b/source4/torture/rpc/samr.c
index 30e7e0889c476c9fbedd89b3311ac201d691d5b8..94c646a91c11c4711ca04cea463f946c3e58c48d 100644
(file)
--- a/
source4/torture/rpc/samr.c
+++ b/
source4/torture/rpc/samr.c
@@
-2891,7
+2891,7
@@
static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p,
struct dcerpc_pipe *np = NULL;
if (torture_setting_bool(tctx, "samba3", false)) {
- delay =
1000000
;
+ delay =
999999
;
printf("Samba3 has second granularity, setting delay to: %d\n",
delay);
}