Hello,
Below is a patch that repairs ftpd LIST operation for at least Chrome browser.
Discard the patch if the intention is to make clients change behavior. A bug
report has already been filed with the browser. Edge browser works fine.
Other browsers untested.
Symptom in raw output in Chrome 83:
ftpd: -l: No such file or directory
Reproduce using Chrome 83:
ftp://<openbsd ftpd>/?raw
Cheers,
Brian
Index: popen.c
===================================================================
RCS file: /home/brian/cvs/src/libexec/ftpd/popen.c,v
retrieving revision 1.29
diff -u -r1.29 popen.c
--- popen.c 15 Jan 2020 22:06:59 -0000 1.29
+++ popen.c 18 Jul 2020 23:52:49 -0000
@@ -76,7 +76,7 @@
argv[argc++] = "--";
/* glob that path */
- if (path != NULL) {
+ if (path != NULL && strcmp(path, "-l") != 0) {
glob_t gl;
memset(&gl, 0, sizeof(gl));