projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix REST.
[unix-history]
/
usr
/
src
/
libexec
/
ftpd
/
ftpcmd.y
diff --git
a/usr/src/libexec/ftpd/ftpcmd.y
b/usr/src/libexec/ftpd/ftpcmd.y
index
437e7c6
..
d92a354
100644
(file)
--- a/
usr/src/libexec/ftpd/ftpcmd.y
+++ b/
usr/src/libexec/ftpd/ftpcmd.y
@@
-4,7
+4,7
@@
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ftpcmd.y 8.
2
(Berkeley) %G%
+ * @(#)ftpcmd.y 8.
3
(Berkeley) %G%
*/
/*
*/
/*
@@
-15,7
+15,7
@@
%{
#ifndef lint
%{
#ifndef lint
-static char sccsid[] = "@(#)ftpcmd.y 8.
2
(Berkeley) %G%";
+static char sccsid[] = "@(#)ftpcmd.y 8.
3
(Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
@@
-621,10
+621,12
@@
pathname
*/
if (logged_in && $1 && *$1 == '~') {
glob_t gl;
*/
if (logged_in && $1 && *$1 == '~') {
glob_t gl;
- int flags = GLOB_BRACE|GLOB_QUOTE|GLOB_TILDE;
+ int flags =
+ GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE;
memset(&gl, 0, sizeof(gl));
memset(&gl, 0, sizeof(gl));
- if (glob($1, flags, NULL, &gl)) {
+ if (glob($1, flags, NULL, &gl) ||
+ gl.gl_pathc == 0) {
reply(550, "not found");
$$ = NULL;
} else {
reply(550, "not found");
$$ = NULL;
} else {