Plan 9 from Bell Labs’s /usr/web/sources/patch/saved/ftpfs-unix-spacefiles/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Currently, ftpfs is broken with respect to files with spaces in their
filename.  We assume all files will be sent as a single string, while
this is not the case.  My fix is a kind of nasty hack, but I couldn't
think of a better way that didn't require a lot more restructuring
than I was willing to do.  Anyway, example of the problem:

ls /n/ftp/mp3/mp3
:
/n/ftp/mp3/mp3/Borsato
:

The expected output from ls is:
'/n/ftp/mp3/mp3/Marco Borsato'

With this patch, any filenames with spaces in them are fixed for
correct output:

'/n/ftp/mp3/mp3/thievery corporation - sounds from the thievery hi-fi/04. transcendence.mp3'

for example.

I reorganized the case handling as well, but that's more of a style
thing.  If you have other suggestions for changes that would make this
more suitable for incorporating as a patch, I'd love to hear them!

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.