[Wine]faking network shares

David Lee Lambert lamber45 at cse.msu.edu
Sun Aug 15 00:16:59 CDT 2004

On Thu, Aug 12, 2004 at 12:42:08PM +0100, Fergal Daly wrote:

> I have an app that wants to read from \\server\directory\file.ini and I
> don't have an easy way of changing this, so I want to tell wine that
> \\server\directory is available in /mnt/smb/server/directory. Is this
> possible? What do I need to do?

If you try to read from a path starting "\\.\" in Wine (in some versions), you'll
get a message saying something like "Fixme: UNC name (%s) not supported.", but there
is basic support for Wine to read from a file directly over an SMB link for paths
that start with "\\" up until Wine-20040505.  It identifies itself as a WfW server 
and doesn't attempt to provide a username or password,  as far as I can tell.  It 
looks like the relevant functions were deleted before 20040615.

In principle,  Wine could probably provide UNC-name support by calling 'smbclient', 
or by parsing /etc/mtab for 'smbfs' mountpoints and trying to access them like any 
other file.  Another alternative would be a configuration-file override to alias an 
arbitrary UNC path as some file, just like the old [Drive X] mappings.  

In your case,  would it be acceptable to have a local, static copy of the .ini file,  
and just point Wine at that somehow?

(Forwarding to the developer's list,  since it looks like this is a useful feature 
that was removed because no one was finishing it.)

resume at  http://www.cse.msu.edu/~lamber45/resume.htm
PGP key at http://www.cse.msu.edu/~lamber45/newmail.htm#GPGKey

More information about the wine-devel mailing list