Re: Checkpassword and FD3 - the problem
"Jim Ramsay" <[email protected]> Thu, 10 Apr 2003 10:54:35 -0600
| Newsgroups | gmane.comp.djb.checkpassword |
|---|---|
| Message-ID | <[email protected]> |
"Paul Jarc" <[email protected]> wrote in message news:[email protected]... > After the grandchild execs checkpassword, checkpassword will exec the > next program - qmail-pop3d, or whatever. That program needs the > original descriptors 1 and 2 to do its job. You'll need to save and > restore both of those, which won't be any easier than saving and > restoring descriptor 3. Not if it's just [/usr]/bin/true... but you're right. In general it's yet another inellegant solution. > > This is almost as kludgey as using /bin/sh for redirection or wrapping > > python in some sort of environment where FD#3 is already open, but at least > > it can be done purely in python :) > > My wrapper sh script could be rewritten in python easily enough. I suppose it is. Maybe I'll do that. I like the idea of using a wrapper around checkpassword as opposed to a wrapper around python. It's too bad I have to use a wrapper of any kind, though. "Why can't it work right away without me telling it what to do"