*/
#include "includes.h"
+#include "lib/util/util_file.h"
#include "smbd/smbd.h"
#include "smbd/globals.h"
+#include "source3/smbd/smbXsrv_session.h"
#include "rpc_client/rpc_client.h"
#include "../librpc/gen_ndr/ndr_samr_c.h"
#include "../librpc/gen_ndr/ndr_spoolss_c.h"
i = n = 0;
#if 0
/*
- * This is the old error code we used. Aparently
+ * This is the old error code we used. Apparently
* WinNT/2k systems return ERRbuftoosmall (2123) and
* OS/2 needs this. I'm leaving this here so we can revert
* if needed. JRA.
DEBUG(3,("api_DosPrintQGetInfo uLevel=%d name=%s\n",uLevel,QueueName));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (!prefix_ok(str1,"zWrLh"))
return False;
if (!check_printq_info(&desc,uLevel,str2,str3)) {
return False;
}
- p2 = (*rdata) + fixed_len; /* auxilliary data (strings) will go here */
+ p2 = (*rdata) + fixed_len; /* auxiliary data (strings) will go here */
p = *rdata;
f_len = fixed_len;
s_len = string_len;
return False;
}
- p2 = (*rdata) + fixed_len; /* auxilliary data (strings) will go here */
+ p2 = (*rdata) + fixed_len; /* auxiliary data (strings) will go here */
p = *rdata;
f_len = fixed_len;
s_len = string_len;
return False;
}
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (!prefix_ok(str1,"zWrLh")) {
return False;
}
return False;
}
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (!prefix_ok(str1,RAP_WShareAdd_REQ)) {
return False;
}
if (!pull_ascii_talloc(talloc_tos(), &pathname,
offset ? (data+offset) : "", &converted_size))
{
- DEBUG(0,("api_RNetShareAdd: pull_ascii_talloc failed: %s",
+ DEBUG(0,("api_RNetShareAdd: pull_ascii_talloc failed: %s\n",
strerror(errno)));
}
return False;
}
- /* check it's a supported varient */
+ /* check it's a supported variant */
if ( strcmp(str1,"zWrLeh") != 0 )
return False;
return False;
}
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp("B21",str2) != 0)
return False;
if(!rap_to_pjobid(SVAL(p,0), sharename, &jobid))
return False;
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (!(strcsequal(str1,"W") && strcsequal(str2,"")))
return(False);
return False;
}
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (!(strcsequal(str1,"z") && strcsequal(str2,"")))
return(False);
*rdata_len = 0;
- /* check it's a supported varient */
+ /* check it's a supported variant */
if ((strcmp(str1,"WWsTP")) ||
(!check_printjob_info(&desc,uLevel,str2)))
return(False);
DEBUG(4,("NetServerGetInfo level %d\n",uLevel));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (!prefix_ok(str1,"WrLh")) {
return False;
}
return False;
}
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (!(level==10 && strcsequal(str1,"WrLh") && strcsequal(str2,"zzzBBzz"))) {
return False;
}
DEBUG(3,("WWkstaUserLogon uLevel=%d name=%s\n",uLevel,name));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,"OOWb54WrLh") != 0) {
return False;
}
}
DEBUG(3,("WAccessGetUserPerms user=%s resource=%s\n",user,resource));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,"zzh") != 0) {
return False;
}
DEBUG(3,("WPrintJobGetInfo uLevel=%d uJobId=0x%X\n",uLevel,SVAL(p,0)));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,"WWrLh") != 0) {
return False;
}
DEBUG(3,("WPrintDestGetInfo uLevel=%d PrinterName=%s\n",uLevel,PrinterName));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,"zWrLh") != 0) {
return False;
}
DEBUG(3,("WPrintDestEnum uLevel=%d\n",uLevel));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,"WrLeh") != 0) {
return False;
}
DEBUG(3,("WPrintDriverEnum uLevel=%d\n",uLevel));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,"WrLeh") != 0) {
return False;
}
DEBUG(3,("WPrintQProcEnum uLevel=%d\n",uLevel));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,"WrLeh") != 0) {
return False;
}
DEBUG(3,("WPrintPortEnum uLevel=%d\n",uLevel));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,"WrLeh") != 0) {
return False;
}
DEBUG(7,("RNetSessionEnum req string=%s\n",str1));
DEBUG(7,("RNetSessionEnum ret string=%s\n",str2));
- /* check it's a supported varient */
+ /* check it's a supported variant */
if (strcmp(str1,RAP_NetSessionEnum_REQ) != 0) {
return False;
}