]> git.sesse.net Git - betaftpd/commitdiff
Fixed a bug where option parsing would begin parse the file name as options.
authorsgunderson <sgunderson>
Fri, 20 Jul 2001 14:49:25 +0000 (14:49 +0000)
committersgunderson <sgunderson>
Fri, 20 Jul 2001 14:49:25 +0000 (14:49 +0000)
cmds.c

diff --git a/cmds.c b/cmds.c
index cd8cfbc610aeff1b4755832f696a4065516b0b94..e25fd62233efa81fd656d4e1dcd06efad1ff71a5 100644 (file)
--- a/cmds.c
+++ b/cmds.c
@@ -1845,7 +1845,7 @@ int prepare_for_listing(struct conn * const c, char ** const ptr,
                        case 'F':
                                lo->classify = 1;
                                break;
-                       case ' ':
+                       case '\0':
                                fptr = optr + 1;
                                *(optr--) = 0;
                                break;
@@ -1856,7 +1856,7 @@ int prepare_for_listing(struct conn * const c, char ** const ptr,
        } else {
                fptr = c->recv_buf;
        }
-       
+
        /* then we chdir to the dir in fptr (if any) */
        tmp = fptr ? strrchr(fptr, '/') : NULL;
        if (tmp != NULL) {