summaryrefslogtreecommitdiff
path: root/sftp-glob.c
diff options
context:
space:
mode:
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}