search for: ls_file

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

Did you mean: is_file
2002 Oct 18
1
Patch: sftp client support of "ls [flags] [path [localfile]]" feature
...; if ((n = do_readdir(conn, path, &d)) != 0) + { + if (fp) fclose(fp); return (n); + } /* Count entries for sort */ for (n = 0; d[n] != NULL; n++) *************** *** 583,598 **** memset(&sb, 0, sizeof(sb)); attrib_to_stat(&d[n]->a, &sb); lname = ls_file(fname, &sb, 1); ! printf("%s\n", lname); xfree(lname); } else { /* XXX - multicolumn display would be nice here */ ! printf("%s\n", fname); } xfree(fname); } free_sftp_dirents(d); return (0); } --- 603,619 ---- memset(&sb, 0,...
2001 Feb 25
1
Problem with sftp-server on Tru64 (long long type and %ll)
The ls_file function in sftp-server.c calls snprintf with "%8llu" as part of the format string and a "unsigned long long" type argument. The "%ll" format is not a valid format on Tru64 (at least 4.0F). Apparently it can confuse snprintf as well - sftp-server will segfault and cor...
2016 Jun 02
2
[PATCH] Link count attribute extension
...iff -u -r1.12 sftp-common.h --- sftp-common.h 14 Jan 2015 13:54:13 -0000 1.12 +++ sftp-common.h 2 Jun 2016 01:32:02 -0000 @@ -40,6 +40,8 @@ u_int32_t perm; u_int32_t atime; u_int32_t mtime; + u_int32_t has_nlink; + u_int64_t nlink; }; void attrib_clear(Attrib *); @@ -50,3 +52,5 @@ char *ls_file(const char *, const struct stat *, int, int); const char *fx2txt(int); + +#define SFTP_EXT_ATTR_LINK_COUNT "attr-link-count at openssh.com" Index: sftp-server.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/sftp-server.c,v retrieving...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
This patch adds all the missing commonly used UNIX attributes: st_dev, st_ino, st_nlink, st_rdev, st_blocks, st_blksize, st_ctime. In addition it extends st_atime and st_mtime to 64bits, and adds nanosecond resolution to all three timestamps. This is implemented as an extension to the ATTR message. This patch alone is sufficient for SSHFS to be able to use these attributes. The following two
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
2001 Apr 24
10
Call for testing for coming 2.9 release.
If we can get people to test their platforms against the last snapshot/cvs tree I'd be greatful. (http://www.openssh.com/portable.html) I know NeXT platform has problems. I'm going to spend tonight looking at it. Also, take a moment to see what manpage type ./configure decided for your system and if it's 'cat' please let us know. Thanks. - Ben
2010 Aug 09
8
Call for testing: OpenSSH-5.6
Hi, OpenSSH 5.6 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. This is a moderately large release, with a number of new features and bug fixes. Snapshot releases for portable OpenSSH are available from http://www.mindrot.org/openssh_snap/ The OpenBSD version is available in CVS HEAD: http://www.openbsd.org/anoncvs.html Portable OpenSSH