commit c57b71966ec2b3342a3a4da515944cabf268609f
parent 29fae81fb76c854f41b493ab6c8a67e2ae834a58
Author: Igor Burago <ib@iburago.org>
Date: Fri, 29 Jul 2022 22:53:14 +0800
acme: accept paths with spaces in the 'name' ctl message
As it is allowed to use spaces in file names set interactively through
the tag since 7b1c85f, do not reject names with spaces in the 'name'
ctl message either.
Fixes #559.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/acme/xfid.c b/src/cmd/acme/xfid.c
@@ -691,7 +691,7 @@ xfidctlwrite(Xfid *x, Window *w)
break;
}
for(i=0; i<nr; i++)
- if(r[i] <= ' '){
+ if(r[i] < ' '){
err = "bad character in file name";
goto out;
}