[Users] [Bug 2828] Use MD5 digest for socket name

Ricardo Mones ricardo at mones.org
Wed Nov 28 23:22:29 CET 2012


On Wed, 28 Nov 2012 16:17:34 -0500
ratinox at gweep.net wrote:

> On Wed, 28 Nov 2012 21:33:35 +0100 (CET)
> noreply at thewildbeast.co.uk wrote:
> 
> >  - don't remove uid from socket name, just add the MD5, otherwise
> > two different users could clash using the same dir. Agreed that this
> > wouldn't be a common setup, but it costs very little to keep it and
> > helps identifying stale sockets.
> 
> Two different UIDs can still share the configuration directory with
> this patch. They just can't run two or more instances of Claws Mail
> simultaneously. This is an improvement over the current code which
> permits multiple instances of the same configuration with different
> UIDs.

  Well, as I can be wrong sometimes, just launched another user with
  --alternate-config-dir over my home config, then tried to launch:

$ /opt/claws/bin/claws-mail 
can't bind to /tmp/claws-mail-49d77610f1335082091e3ebdd4979d7f: Address already in use

  So, no, two users cannot share config if you remove uid from socket
  name, sorry.

> >  - unified diff format preferred ;-)
> 
> I will keep this in mind for future reference.

  Thanks,
-- 
  Ricardo Mones 
  ~
  Physics is like sex: sure, it may give some practical results, but 
  that's not why we do it.                            Richard Feynman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20121128/710c4b6f/attachment.sig>


More information about the Users mailing list