On 2017-10-18 17:27:04 +0200, Joerg Wunsch wrote: > As Wheeler, David A wrote: > > > It's not just spaces. Filesystem names may contain newlines and > > other control characters, too, so "df -P" is fundamentally unsafe. > > Well, it's a question of whether your goal is to be always on the > safe side, or just pragmatically to cope with a number of really > existing operating systems. > > Unlike a filename, a filesystem name is nothing that could be invented > by Mr. Malicious User, so if the only point is to handle OSX as well > as (say) Linux, BSD, Solaris etc. the pragmatic way that has been > posted might suffice.
Are you sure about that? Even with FUSE on Linux? -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)