Displaying 6 results from an estimated 6 matches for "cur_dir".
Did you mean:
curr_dir
1998 Apr 12
0
Long file name support for smbclient
...;dbuf.name) + 1);
}
-
+
if ((unoct(hb->dbuf.mode, sizeof(hb->dbuf.mode)) & S_IFDIR)
|| (*(finfo->name+strlen(finfo->name)-1) == '\\'))
{
@@ -1309,7 +1330,9 @@
do {
if (!fsize)
{
- switch (readtarheader((union hblock *) bufferp, &finfo, cur_dir))
+ int result, skipblks;
+ result=readtarheader((union hblock *) bufferp, &finfo, cur_dir);
+ switch (result)
{
case -2: /* something dodgy but not fatal about this */
DEBUG(0, ("skipping %s...\n", finfo.name));
@@ -1325,8 +1348,18 @@
(&qu...
2019 May 29
1
How to improve the performance with unix_convert ?
...in the filename.c .the client will be failed to find some file .but the write speed will be improved .
static int get_real_filename_full_scan(connection_struct *conn,
const char *path, const char *name,
bool mangled,
TALLOC_CTX *mem_ctx, char **found_name)
{
struct smb_Dir *cur_dir;
const char *dname = NULL;
char *talloced = NULL;
char *unmangled_name = NULL;
long curpos;
struct smb_filename *smb_fname = NULL;
/* handle null paths */
if ((path == NULL) || (*path == 0)) {
path = ".";
}
/* If we have a case-sensitive filesystem, it doesn't do us any
* good to...
1997 Jul 24
0
smbclient, tar, and exclude
...mp;& (*s1 == '/' || *s1 == '\\') && !*(s1+1)) return 0;
+
+ /* check for s1 is an "initial" string of s2 */
+ if (*s2 == '/' || *s2 == '\\') return 0;
+
return *s1-*s2;
}
***************
*** 1127,1137 ****
strcpy(exclaim, cur_dir);
*(exclaim+strlen(exclaim)-1)='\0';
-
- if (clipfind(cliplist, clipn, exclaim)) {
- DEBUG(3,("Skipping directory %s\n", exclaim));
- return;
- }
strcat(exclaim, "\\");
strcat(exclaim, finfo->name);
--- 1143,1148 ----
*** prot...
1999 Jul 01
1
SAMBA digest 2150
...{
> > free( temp ); /* Free memory allocated every time
> by readline() */
> > temp = (char *)NULL;
> > }
> >
> > snprintf( prompt, PromptSize - 1, "smb: %s> ",
> CNV_LANG(cur_dir) );
> 1769a1809,1818
> > temp = readline( prompt ); /* We read the line
> here */
> >
> > if ( !temp )
> > break; /* EOF occured */
> >
> > if ( *temp ) /* If n...
2003 Dec 01
0
No subject
...*******************************************************
+ get file restarting at end of local file
+ ****************************************************************************/
+static void cmd_reget(void)
+{
+ pstring lname;
+ pstring rname;
+ char *p;
+
+ pstrcpy(rname,cur_dir);
+ pstrcat(rname,"\\");
+
+ p = rname + strlen(rname);
+
+ if (!next_token(NULL,p,NULL,sizeof(rname)-strlen(rname))) {
+ DEBUG(0,("reget <filename>\n"));
+ return;
+ }
+ pstrcpy(lname,p);
+ dos_...
2003 Dec 01
0
No subject
...+/****************************************************************************
+ get file restarting at end of local file
+ ****************************************************************************/
+static void cmd_reget(void)
+{
+ pstring lname;
+ pstring rname;
+ char *p;
+
+ pstrcpy(rname,cur_dir);
+ pstrcat(rname,"\\");
+
+ p = rname + strlen(rname);
+
+ if (!next_token(NULL,p,NULL,sizeof(rname)-strlen(rname))) {
+ DEBUG(0,("reget <filename>\n"));
+ return;
+ }
+ pstrcpy(lname,p);
+ dos_clean_name(rname);
+
+ next_token(NULL,lname,NULL,sizeof(lname));
+
+ do...