summaryrefslogtreecommitdiff
path: root/sftp-glob.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-05 23:26:32 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-05 23:26:32 +0000
commita3700050ec681277bcdf76a02b0c2e304ff317c7 (patch)
tree6cd727ebf611f03b345783cb9d6d8d04e8f483bf /sftp-glob.c
parenta6c20148f58e34a902512ffe5eee3279acaaa26b (diff)
- markus@cvs.openbsd.org 2001/04/05 10:42:57
[auth-chall.c authfd.c channels.c clientloop.c kex.c kexgex.c key.c mac.c packet.c serverloop.c sftp-client.c sftp-client.h sftp-glob.c sftp-glob.h sftp-int.c sftp-server.c sftp.c ssh-keygen.c sshconnect.c sshconnect2.c sshd.c] fix whitespace: unexpand + trailing spaces.
Diffstat (limited to 'sftp-glob.c')
-rw-r--r--sftp-glob.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sftp-glob.c b/sftp-glob.c
index 208efeb15..535241002 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.3 2001/04/03 13:56:11 stevesk Exp $"); 26RCSID("$OpenBSD: sftp-glob.c,v 1.4 2001/04/05 10:42:53 markus Exp $");
27 27
28#include "ssh.h" 28#include "ssh.h"
29#include "buffer.h" 29#include "buffer.h"
@@ -84,7 +84,7 @@ struct dirent *fudge_readdir(struct SFTP_OPENDIR *od)
84#ifdef BROKEN_ONE_BYTE_DIRENT_D_NAME 84#ifdef BROKEN_ONE_BYTE_DIRENT_D_NAME
85 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN); 85 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN);
86#else 86#else
87 strlcpy(ret->d_name, od->dir[od->offset++]->filename, 87 strlcpy(ret->d_name, od->dir[od->offset++]->filename,
88 sizeof(ret->d_name)); 88 sizeof(ret->d_name));
89#endif 89#endif
90#ifdef __GNU_LIBRARY__ 90#ifdef __GNU_LIBRARY__
@@ -150,7 +150,7 @@ int fudge_stat(const char *path, struct stat *st)
150} 150}
151 151
152int 152int
153remote_glob(int fd_in, int fd_out, const char *pattern, int flags, 153remote_glob(int fd_in, int fd_out, const char *pattern, int flags,
154 const int (*errfunc)(const char *, int), glob_t *pglob) 154 const int (*errfunc)(const char *, int), glob_t *pglob)
155{ 155{
156 pglob->gl_opendir = (void*)fudge_opendir; 156 pglob->gl_opendir = (void*)fudge_opendir;
@@ -163,6 +163,6 @@ remote_glob(int fd_in, int fd_out, const char *pattern, int flags,
163 cur.fd_in = fd_in; 163 cur.fd_in = fd_in;
164 cur.fd_out = fd_out; 164 cur.fd_out = fd_out;
165 165
166 return(glob(pattern, flags | GLOB_ALTDIRFUNC, (void*)errfunc, 166 return(glob(pattern, flags | GLOB_ALTDIRFUNC, (void*)errfunc,
167 pglob)); 167 pglob));
168} 168}