1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

nicer way of handling \clients

(This used to be commit 931138cc440f646671ec5e9b52eb3666b2ff014b)
This commit is contained in:
Andrew Tridgell 2004-03-10 09:00:24 +00:00
parent 8d0c060397
commit 3d5ea8e3e2
2 changed files with 14 additions and 3 deletions

View File

@ -106,6 +106,8 @@ again:
nb_deltree(params[1]);
} else if (!strcmp(params[0],"Rmdir")) {
nb_rmdir(params[1], status);
} else if (!strcmp(params[0],"Mkdir")) {
nb_mkdir(params[1], status);
} else if (!strcmp(params[0],"QUERY_PATH_INFORMATION")) {
nb_qpathinfo(params[1], ival(params[2]), status);
} else if (!strcmp(params[0],"QUERY_FILE_INFORMATION")) {

View File

@ -215,9 +215,7 @@ void nb_createx(const char *fname,
talloc_destroy(mem_ctx);
if (strcmp(fname, "\\clients") != 0) {
check_status("NTCreateX", status, ret);
}
check_status("NTCreateX", status, ret);
if (!NT_STATUS_IS_OK(ret)) return;
@ -429,6 +427,17 @@ void nb_rmdir(const char *dname, NTSTATUS status)
check_status("Rmdir", status, ret);
}
void nb_mkdir(const char *dname, NTSTATUS status)
{
union smb_mkdir io;
io.mkdir.level = RAW_MKDIR_MKDIR;
io.mkdir.in.path = dname;
/* NOTE! no error checking. Used for base fileset creation */
smb_raw_mkdir(c->tree, &io);
}
void nb_rename(const char *old, const char *new, NTSTATUS status)
{
NTSTATUS ret;