summaryrefslogtreecommitdiff
path: root/sftp-glob.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-09-12 09:54:25 +1000
committerDamien Miller <djm@mindrot.org>2002-09-12 09:54:25 +1000
commite1a49817078a22056be87cde74467d52583e9ea1 (patch)
tree1ad843d67b9e1ebaf49a91be0004aed57485c3db /sftp-glob.c
parent789e95dbe931bad60cb5f91d995470f433f4e02b (diff)
- djm@cvs.openbsd.org 2002/09/11 22:41:50
[sftp.1 sftp-client.c sftp-client.h sftp-common.c sftp-common.h] [sftp-glob.c sftp-glob.h sftp-int.c sftp-server.c] support for short/long listings and globbing in "ls"; ok markus@
Diffstat (limited to 'sftp-glob.c')
-rw-r--r--sftp-glob.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sftp-glob.c b/sftp-glob.c
index 2a7cf141c..ee122a2cd 100644
--- a/sftp-glob.c
+++ b/sftp-glob.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sftp-glob.c,v 1.12 2002/07/04 04:15:33 deraadt Exp $"); 26RCSID("$OpenBSD: sftp-glob.c,v 1.13 2002/09/11 22:41:50 djm Exp $");
27 27
28#include "buffer.h" 28#include "buffer.h"
29#include "bufaux.h" 29#include "bufaux.h"
@@ -107,25 +107,6 @@ fudge_closedir(struct SFTP_OPENDIR *od)
107 xfree(od); 107 xfree(od);
108} 108}
109 109
110static void
111attrib_to_stat(Attrib *a, struct stat *st)
112{
113 memset(st, 0, sizeof(*st));
114
115 if (a->flags & SSH2_FILEXFER_ATTR_SIZE)
116 st->st_size = a->size;
117 if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) {
118 st->st_uid = a->uid;
119 st->st_gid = a->gid;
120 }
121 if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS)
122 st->st_mode = a->perm;
123 if (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME) {
124 st->st_atime = a->atime;
125 st->st_mtime = a->mtime;
126 }
127}
128
129static int 110static int
130fudge_lstat(const char *path, struct stat *st) 111fudge_lstat(const char *path, struct stat *st)
131{ 112{