diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-03-19 19:11:00 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-03-19 19:11:00 +0000 |
commit | e62162bcfed469d20700ca4e9be98574f1b728c1 (patch) | |
tree | 8a86ad9995e318b5714573473b9967aac2002642 /libexec/ftpd/popen.c | |
parent | b7db4c94c39d3b8f980a3c3f3ce1166ce5c3004e (diff) | |
download | FreeBSD-src-e62162bcfed469d20700ca4e9be98574f1b728c1.zip FreeBSD-src-e62162bcfed469d20700ca4e9be98574f1b728c1.tar.gz |
Teach ftpd about the new GLOB_MAXPATH flag.
Diffstat (limited to 'libexec/ftpd/popen.c')
-rw-r--r-- | libexec/ftpd/popen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libexec/ftpd/popen.c b/libexec/ftpd/popen.c index 74f34e3..e8d3cfb 100644 --- a/libexec/ftpd/popen.c +++ b/libexec/ftpd/popen.c @@ -107,6 +107,8 @@ ftpd_popen(program, type) int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE; memset(&gl, 0, sizeof(gl)); + gl.gl_matchc = MAXGLOBARGS; + flags |= GLOB_MAXPATH; if (glob(argv[argc], flags, NULL, &gl)) gargv[gargc++] = strdup(argv[argc]); else |