search for: strip_path

Displaying 4 results from an estimated 4 matches for "strip_path".

2002 Oct 18
1
Patch: sftp client support of "ls [flags] [path [localfile]]" feature
...llowing are the diff outputs against 3.5p1 to enable this feature. *** sftp-int.c.orig Wed Sep 11 20:34:15 2002 --- sftp-int.c Fri Oct 18 13:39:46 2002 *************** *** 555,567 **** /* sftp ls.1 replacement for directories */ static int ! do_ls_dir(struct sftp_conn *conn, char *path, char *strip_path, int lflag) { int n; SFTP_DIRENT **d; if ((n = do_readdir(conn, path, &d)) != 0) return (n); /* Count entries for sort */ for (n = 0; d[n] != NULL; n++) --- 555,587 ---- /* sftp ls.1 replacement for directories */ static int ! do_ls_dir(struct sftp_conn *conn, char *...
2003 Oct 13
1
Problem in sftp 'ls' command output
...; columns = width / (m + 2); columns = MAX(columns, 1); colspace = width / columns; } -------- which aims to compute the column width and column spacing. But when printing, a few lines below, we perform : -------- tmp = path_append(path, d[n]->filename); fname = path_strip(tmp, strip_path); xfree(tmp); if (lflag & LONG_VIEW) { /* irrelevant code */ } else { printf("%-*s", colspace, fname); if (c >= columns) { printf("\n"); c = 1; } else c++; } -------- What it boils down is that column width and spacing are computed on filenames, but we...
2008 Jul 21
2
sftp needs a long time for sending a filelist
Hello all Im using sftp 1:4.7p1-8ubuntu1.2 in a batchjob Ive noticed that sftp needs a long time for sending a filelist. The timespan increases exponential if many files are on the remoteserver. for example "ls -la *.txt" needs 10 seconds for 2000 files but needs 50 seconds for 4000 files. For 150.000 Files i have to wait 15 minutes for example but the
2010 May 05
2
[Bug 1767] New: Inconsistend wildcard expansion in 'ls *'
https://bugzilla.mindrot.org/show_bug.cgi?id=1767 Summary: Inconsistend wildcard expansion in 'ls *' Product: Portable OpenSSH Version: 5.5p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: sftp AssignedTo: unassigned-bugs at mindrot.org