http://bugs.winehq.org/show_bug.cgi?id=8766
--- Comment #5 from Scott Ritchie scott@open-vote.org 2008-05-13 19:22:01 --- I was thinking about this bug a bit.
The first thing to note is that any solution must respect the fact that we could have multiple Wine prefixes. Accordingly, just ignoring the ~/.wine/dosdevices folder (or the current prefix) wouldn't work in a good number of cases.
One possible solution would be to add support to Wine for a file to indicate supressing the containing folder, sort of like the .cvsignore files. Then we could put that file into the ~/.wine/dosdevices folder by default, and this problem would go away.
Alternatively, we could simply have a blacklist of folders stored within a single file somewhere in the current Wine prefix (or in the registry).
This does open up an interesting new feature (and perhaps vulnerability), as applications or users could exclude arbitrary directories from being shown by Wine.