afpfs-ng icon indicating copy to clipboard operation
afpfs-ng copied to clipboard

recursive get fails on names with spaces

Open shevek opened this issue 10 years ago • 1 comments

cmdline_afp.c

1094 snprintf(curdir,AFP_MAX_PATH,"%s",total_path); 1095 com_get_file(p->name,1, &amount_written);

com_get_file gets the filename, but it reparses it as if it's user input. get_dir() really needs to call a lower level function which doesn't reparse the name, as what we have in p->name is a server-side name, not user input

shevek avatar Mar 30 '14 20:03 shevek

Worked around by strcpy arg into filename if silent is set.

shevek avatar Mar 30 '14 20:03 shevek