search for: cli_open

Displaying 7 results from an estimated 7 matches for "cli_open".

Did you mean: li_open
2005 Apr 06
2
NT_Create_AndX
Hi - Is there a way to tell Samba to use the NT_Create_AndX style of commands (vs SMB_COM_OPEN)? Thanks, Zach
2000 Jul 11
0
Error ERRaccess in Samba 2.0.7 printing to Netgear print servers
...ecessary access rights within the specified context for the requested function. The context is defined by the TID or the UID.) opening remote file stdin-1234 I compared the 2.0.7 source with the 1.9.18 source and found that the cmd_print procedure has changed significantly. In clientgen.c, the cli_open procedure has the following statement : CVAL(cli->outbuf,smb_com) = SMBopenX I changed that to CVAL(cli->outbuf,smb_com) = SMBsplopen; and the ERRaccess error disappeared. It is my guess that the Netgear print server does not support the SMBopenX file SMB commands, but does support the...
2005 Jun 01
1
Unable to authenticate against an OS/2 PDC
...that I have set everything up correctly however I am not able to authenticate any users successfully. First I try to join the domain by running the command: # net join -U user%pass -S pdc -w wgname -d1 [2005/06/01 19:31:00, 1] rpc_client/cli_pipe.c:cli_nt_session_open(1459) cli_nt_session_open: cli_open failed on pipe \PIPE\lsarpc to machine pdc. Error was ERRDOS - ERRbadpath (Directory invalid.) [2005/06/01 19:31:00, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(168) Error connecting to LSA pipe Unable to join domain (null). I am not sure if the concept of "joining" a domain is even...
2001 Oct 23
1
PATCH to Samba >= 2.2.1, accents and special chars
...e it the works */ if (flags & STR_CONVERT) { dos_PutUniCode(dest, src, dest_len, flags & STR_TERMINATE); } else { ascii_to_unistr(dest, src, dest_len); } No such luck, src is NOT in Dos format but in Unix format. Hence all my troubles. The same ting is done/not done anymore in cli_open, cli_mkdir, etc. My fix is easy. It's just a call to unix_to_dos in the proper place. The patch may be applied to samba 2.2.1a or 2.2.2. I'm not sure if it's the proper answer, though. So, I submit it to the community. No flames, please :-) -- -+-+ Pierre-Yves BONNETAIN Con...
2001 Oct 07
1
FYI : FiSh connection over SSH fails : midnight commander freezing
...r userland * buffer is storing the response. */ As one of the arguments a variable "from_stdin" is passed, but I did whether figure out where this variable is set nor where it is defined, it seems to be always 0. Depending on the value of "from_stdin", the function "cli_open" seems to return the file descriptors of /dev/tty or of stdin/stdout. I have no idea yet if this behaviour, most probably depending on the value of "from_stdin" and maybe "cli_input" and "cli_output" (initialized with -1) can be influenced by an external applicati...
2003 Dec 01
0
No subject
...+ struct timeval tp_start; + int read_size = io_bufsize; + uint16 attr; + size_t size; + off_t nread = 0; + off_t hashbytes = HASHBYTES; + + GetTimeOfDay(&tp_start); + + if (lowercase) { + strlower(lname); + } + + fnum = cli_open(cli, rname, O_RDONLY, DENY_NONE); + + if (fnum == -1) { + DEBUG(0,("%s opening remote file %s\n",cli_errstr(cli),rname)); + return; + } + + if(!strcmp(lname,"-")) { + handle = fileno(stdout); + } else { +...
2003 Dec 01
0
No subject
...*lname) +{ + int handle=0,fnum; + BOOL newhandle = False; + char *data; + struct timeval tp_start; + int read_size = io_bufsize; + uint16 attr; + size_t size; + off_t nread = 0; + off_t hashbytes = HASHBYTES; + + GetTimeOfDay(&tp_start); + + if (lowercase) { + strlower(lname); + } + + fnum = cli_open(cli, rname, O_RDONLY, DENY_NONE); + + if (fnum == -1) { + DEBUG(0,("%s opening remote file %s\n",cli_errstr(cli),rname)); + return; + } + + if(!strcmp(lname,"-")) { + handle = fileno(stdout); + } else { + struct stat stbuf; + int ret; + + ret = stat(lname, &st...