/* Verify that looking up a file name takes constant time.
*
- * This test samples the lookup rate for a non-existant filename in a
+ * This test samples the lookup rate for a non-existent filename in a
* directory, while varying the number of files in the directory. The
* lookup rate should continue to approximate the lookup rate for the
* empty directory case.
notify.nttrans.in.file.fnum = fnum;
req = smb_raw_changenotify_send(cli->tree, ¬ify);
- status = smbcli_unlink(cli->tree, BASEDIR "\\nonexistant.txt");
+ status = smbcli_unlink(cli->tree, BASEDIR "\\nonexistent.txt");
CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
/* (1st unlink) as the 2nd notify directly returns,
printf("(3rd notify) this notify will only see the 1st unlink\n");
req = smb_raw_changenotify_send(cli->tree, ¬ify);
- status = smbcli_unlink(cli->tree, BASEDIR "\\nonexistant.txt");
+ status = smbcli_unlink(cli->tree, BASEDIR "\\nonexistent.txt");
CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
printf("Testing notify on wildcard unlink for %d files\n", count-1);
torture_assert(tctx, torture_setup_dir(cli, BASEDIR), "Failed to setup up test directory: " BASEDIR);
torture_comment(tctx, "Checking RAW_NTCREATEX_READX chained on "
- "non-existant file \n");
+ "non-existent file \n");
/* ntcreatex parameters */
io.generic.level = RAW_OPEN_NTCREATEX_READX;
io.ntcreatexreadx.in.remaining = 0;
io.ntcreatexreadx.out.data = (uint8_t *)buf2;
- /* try to open the non-existant file */
+ /* try to open the non-existent file */
status = smb_raw_open(cli->tree, mem_ctx, &io);
CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
fnum = io.ntcreatexreadx.out.file.fnum;
basedir_data = talloc_asprintf(tctx, "%s::$DATA", BASEDIR);
sname1 = talloc_asprintf(tctx, "%s:%s", fname, "Stream One");
- printf("(%s) opening non-existant directory stream\n", __location__);
+ printf("(%s) opening non-existent directory stream\n", __location__);
io.generic.level = RAW_OPEN_NTCREATEX;
io.ntcreatex.in.root_fid.fnum = 0;
io.ntcreatex.in.flags = 0;
sname1 = talloc_asprintf(tctx, "%s:%s", fname, "Stream One");
sname2 = talloc_asprintf(tctx, "%s:%s:$DaTa", fname, "Second Stream");
- printf("(%s) creating a stream on a non-existant file\n", __location__);
+ printf("(%s) creating a stream on a non-existent file\n", __location__);
io.generic.level = RAW_OPEN_NTCREATEX;
io.ntcreatex.in.root_fid.fnum = 0;
io.ntcreatex.in.flags = 0;
sname1 = talloc_asprintf(tctx, "%s:%s", fname, "Stream One");
- printf("(%s) opening non-existant file stream\n", __location__);
+ printf("(%s) opening non-existent file stream\n", __location__);
io.generic.level = RAW_OPEN_NTCREATEX;
io.ntcreatex.in.root_fid.fnum = 0;
io.ntcreatex.in.flags = 0;
torture_assert(tctx, torture_setup_dir(cli, BASEDIR), "Failed to setup up test directory: " BASEDIR);
- printf("Trying non-existant file\n");
+ printf("Trying non-existent file\n");
io.unlink.in.pattern = fname;
io.unlink.in.attrib = 0;
status = smb_raw_unlink(cli->tree, &io);
r.out.rep = &repp;
ZERO_STRUCT(req);
- req.req3.account.string = "non-existant-account-aklsdji";
+ req.req3.account.string = "non-existent-account-aklsdji";
for (i=0; passwords[i]; i++) {
req.req3.password.string = passwords[i];
notify.smb2.in.file.handle = h1;
req = smb2_notify_send(tree1, &(notify.smb2));
- status = smb2_util_unlink(tree1, BASEDIR "\\nonexistant.txt");
+ status = smb2_util_unlink(tree1, BASEDIR "\\nonexistent.txt");
CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
/* (1st unlink) as the 2nd notify directly returns,
"(3rd notify) this notify will only see the 1st unlink\n");
req = smb2_notify_send(tree1, &(notify.smb2));
- status = smb2_util_unlink(tree1, BASEDIR "\\nonexistant.txt");
+ status = smb2_util_unlink(tree1, BASEDIR "\\nonexistent.txt");
CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
for (i=1;i<count;i++) {
sname1 = talloc_asprintf(mem_ctx, "%s:%s", fname, "Stream One");
torture_comment(tctx, "%s\n", sname1);
- torture_comment(tctx, "(%s) opening non-existant directory stream\n",
+ torture_comment(tctx, "(%s) opening non-existent directory stream\n",
__location__);
ZERO_STRUCT(io.smb2);
io.smb2.in.create_options = NTCREATEX_OPTIONS_DIRECTORY;
status = torture_smb2_testdir(tree, DNAME, &h);
CHECK_STATUS(status, NT_STATUS_OK);
- torture_comment(tctx, "(%s) creating a stream on a non-existant file\n",
+ torture_comment(tctx, "(%s) creating a stream on a non-existent file\n",
__location__);
ZERO_STRUCT(io.smb2);
status = torture_smb2_testdir(tree, DNAME, &h);
CHECK_STATUS(status, NT_STATUS_OK);
- torture_comment(tctx, "(%s) opening non-existant file stream\n",
+ torture_comment(tctx, "(%s) opening non-existent file stream\n",
__location__);
ZERO_STRUCT(io.smb2);
io.smb2.in.create_flags = 0;