On Thu, Feb 02, 2017 at 10:08:48AM +0100, Michael Meskes wrote:
> > Sorry, I'm a bit puzzled.  The only module with such error is
> > sasl_dovecot that AFAICT is not part of the debian package.
> 
> Correct, nobody ever claimed it was.
> 
> > Anyway, I was wrong saying that the incriminated line is fine in 5.1
> > but
> > not in 5.2.  It is wrong in 5.1 too.  Could you try the fix I
> > propose?
> > I've tried, and the socket.unix module loads fine here.
> > 
> > Could you please try the fix I propose (in sasl_dovecot)?
> 
> Just did, but apparently your patch does not work:
> 
> modulemanager   error   Error initializing module 'auth_dovecot' on
> 'localhost': /usr/local/lib/prosody/modules/sasl_dovecot.lib.lua:60:
> attempt to call field 'unix' (a table value)

Sorry, my patch was wrong

    local _, unix = pcall(require, "socket.unix");
    if unix then
       socket.unix = unix.stream or unix.tcp;
    end
  
Unfortunately I can't really test the patches I propose, so I beg your
pardon if they are wrong.

And the patches are really for the upstream of prosody-modules, not for
Debian.

Best,
-- 
Enrico Tassi

Reply via email to