[Dovecot] [checkpassword] I can't get a password from fd3

Timo Sirainen tss at iki.fi
Mon Jan 12 22:14:07 EET 2009


On Mon, 2009-01-12 at 20:54 +0100, Durk Strooisma wrote:
> > On Mon, 2009-01-12 at 18:31 +0100, Durk Strooisma wrote:
> >> #!/bin/bash
> >>
> >> read -d '\0' -r -u 3
> >
> > Are you sure this is supposed to work? \0 character is an end-of-string
> > character in C language, and I wouldn't be surprised if read simply
> > didn't support it as delimiter.
> 
> Well if I try to read everything, without delimiting using \0, I don't get
> more data...

Again the same reason: maybe read just doesn't support it. I actually
tried and couldn't really get it to work with zsh. With bash it worked
even worse.

Anyway I'm sure Dovecot works right, and the problem is just that you
can't do with shell scripting what you're trying to (at least not this
way).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090112/4dbd0c1b/attachment.bin 


More information about the dovecot mailing list