FUSE might be used to apply an invented name to a freshly formatted partition, but I don't see it doing that for an existing one - it would report the name associated with the partition recognition criteria at mount time. I haven't looked at the code for it lately, but don't remember it having any hooks to support such spoofing, at least. In a message dated 10/23/2017 11:42:53 AM Eastern Standard Time, vincent-o...@vinc17.net writes:
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)