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

Durk Strooisma durk at kern.nl
Mon Jan 12 23:47:17 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).

Okay, thanks for verifying. What kind of scripting language would you
suggest for checkpassword instead? Or should I just move on to C?

Durk




More information about the dovecot mailing list