blob: b2bf41284bb75cfefdca6a30644e7d57b7b6de69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
+++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
@@ -805,11 +805,13 @@
* This is a valid reply in some cases but not in others.
*/
if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
- *(char **)&($$) = *ftpglob((char *) $1);
- if (globerr != NULL) {
+ char **vv;
+ vv = ftpglob((char *) $1);
+ if (vv == NULL || globerr != NULL) {
reply(550, globerr);
$$ = NULL;
- }
+ } else
+ $$ = *vv;
free((char *) $1);
} else
$$ = $1;
|