git.samba.org
/
jra
/
samba
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to fix the build on SerNet-sles8
[jra/samba/.git]
/
source3
/
torture
/
torture.c
diff --git
a/source3/torture/torture.c
b/source3/torture/torture.c
index 50bfa61c55794380058312601cc2b638b8ba9069..1f8ef7ecfb7d9dd75436dca5c3a9f72d0a696d75 100644
(file)
--- a/
source3/torture/torture.c
+++ b/
source3/torture/torture.c
@@
-3492,6
+3492,7
@@
static bool run_rename(int dummy)
const char *fname1 = "\\test1.txt";
bool correct = True;
uint16_t fnum1;
const char *fname1 = "\\test1.txt";
bool correct = True;
uint16_t fnum1;
+ NTSTATUS status;
printf("starting rename test\n");
printf("starting rename test\n");
@@
-3521,12
+3522,14
@@
static bool run_rename(int dummy)
cli_unlink(cli1, fname, aSYSTEM | aHIDDEN);
cli_unlink(cli1, fname1, aSYSTEM | aHIDDEN);
cli_unlink(cli1, fname, aSYSTEM | aHIDDEN);
cli_unlink(cli1, fname1, aSYSTEM | aHIDDEN);
-
if (!NT_STATUS_IS_OK(
cli_ntcreate(cli1, fname, 0, GENERIC_READ_ACCESS, FILE_ATTRIBUTE_NORMAL,
+
status =
cli_ntcreate(cli1, fname, 0, GENERIC_READ_ACCESS, FILE_ATTRIBUTE_NORMAL,
#if 0
#if 0
- FILE_SHARE_DELETE|FILE_SHARE_NONE, FILE_OVERWRITE_IF, 0, 0, &fnum1))) {
+ FILE_SHARE_DELETE|FILE_SHARE_NONE,
#else
#else
- FILE_SHARE_DELETE|FILE_SHARE_READ, FILE_OVERWRITE_IF, 0, 0, &fnum1))) {
+ FILE_SHARE_DELETE|FILE_SHARE_READ,
#endif
#endif
+ FILE_OVERWRITE_IF, 0, 0, &fnum1);
+ if (!NT_STATUS_IS_OK(status)) {
printf("Second open failed - %s\n", cli_errstr(cli1));
return False;
}
printf("Second open failed - %s\n", cli_errstr(cli1));
return False;
}