Commit 414830ee authored by Pontus Freyhult's avatar Pontus Freyhult

Don't even try to do anything if globbing failed.

Rev: src/sftp/sftp_bind.c:1.8
parent d75b447e
...@@ -1449,6 +1449,10 @@ lsftp_do_ls(const char* dir, const char* command, int longlist, int all) ...@@ -1449,6 +1449,10 @@ lsftp_do_ls(const char* dir, const char* command, int longlist, int all)
fnameg = strdup( dir ); /* Only local glob */ fnameg = strdup( dir ); /* Only local glob */
glob = lsftp_dc_r_startglob( dglob, 0, 1 ); /* Not sloppy, leave incorrect ones */ glob = lsftp_dc_r_startglob( dglob, 0, 1 ); /* Not sloppy, leave incorrect ones */
if( 1glob ) /* Failed? */
return -1; /* Bail out */
orgglob = glob; orgglob = glob;
if( !strlen( fnameg ) ) /* Empty filename glob? */ if( !strlen( fnameg ) ) /* Empty filename glob? */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment