[Bug 2614] dirname for server_dir should include dev# as well as inode#

Nigel Rowe rho at swiftdsl.com.au
Sat Dec 18 15:34:43 CST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm told it's better to submit patches here, rather than just leaving them in 
bugzilla.  So...



The directory name for the winserver socket is supposed to be of the form

/tmp/.wine-uuuu/server-dddd-iiii

where uuu is uid and dddd and iiii are the device and inode number of the
$WINEPREFIX directory.

The existing code in libs/wine/config.c *almost* gets it right; however it
overwrites the dev# part of the generated dirname with the inode# (instead of
appending).  Thus generating 

/tmp/.wine-uuu/server-iiii

Not likely to me a major problem, but easilly fixed.


- ------- Additional Comment #1 From Nigel Rowe 2004-12-17 23:15 -------

Created an attachment (id=731)
Patch to correct init_server_dir()


- ------- Additional Comment #2 From Tony Lambregts 2004-12-18 11:37 -------

Patches submitted here tend to bit rot. If you want this pach included in wine
it would be best that you submit it to wine-patches at winehq.org .

- -- 
	Nigel Rowe
	rho at swiftdsl.com.au


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBxKKFBbmcM2pfckkRAkehAKCLUmYeMYz3PzsOFxVw0ipCYI8mVQCgh9uI
MYnDZJHc9N7PUcAWOQiavGk=
=6o7K
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_server_dir.patch
Type: text/x-diff
Size: 475 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041219/627654a5/init_server_dir.bin


More information about the wine-patches mailing list