Your message dated Tue, 20 Feb 2007 04:47:34 +0000
with message-id <[EMAIL PROTECTED]>
and subject line l2tpd: connections fail when run as daemon
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: l2tpd
Version: 0.67-1.1
Severity: grave
Justification: renders package unusable
When run as daemon connection fail and the following is logged:
Aug 23 01:33:16 sylvester l2tpd[22245]: start_pppd: I'm running:
Aug 23 01:33:16 sylvester l2tpd[22245]: "/usr/sbin/pppd"
Aug 23 01:33:16 sylvester l2tpd[22245]: "passive"
Aug 23 01:33:16 sylvester l2tpd[22245]: "-detach"
Aug 23 01:33:16 sylvester l2tpd[22245]: "10.1.1.254:10.1.1.100"
Aug 23 01:33:16 sylvester l2tpd[22245]: "auth"
Aug 23 01:33:16 sylvester l2tpd[22245]: "require-chap"
Aug 23 01:33:16 sylvester l2tpd[22245]: "file"
Aug 23 01:33:16 sylvester l2tpd[22245]: "/etc/l2tp/l2tpd.pppd.options"
Aug 23 01:33:16 sylvester l2tpd[22245]:
Aug 23 01:33:17 sylvester pppd[22255]: no device specified and stdin is
not a tt
y
Aug 23 01:33:17 sylvester l2tpd[22245]: child_handler : pppd died for
call 1
if I run l2tpd with -D, I can login.
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux sylvester 2.4.21 #1 Mon Jul 21 23:47:30 WEST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages l2tpd depends on:
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
--- End Message ---
--- Begin Message ---
Version: 0.70-pre20031121-1
Nuno: I apologise if the following explanation means nothing to you. It
may however be useful information to other developers.
I believe that the cause of this bug was that the daemonize() function
closed standard file descriptors rather than replacing them
with /dev/null. This meant that when start_pppd() opened its pseudo-pty
it was given a file descriptor number of 0, 1 or 2, which it closed
before attempting to dup2() it to the correct file descriptor. The
dup2() call failed, but this was not checked. It then started pppd with
file descriptor 0 (stdin) closed, hence the error message.
This was not fixed in version 0.69 but is fixed in the current version;
based on the changelog I believe it to have been fixed in the above
version.
Ben.
--
Ben Hutchings
The obvious mathematical breakthrough [to break modern encryption] would be
development of an easy way to factor large prime numbers. - Bill Gates
signature.asc
Description: This is a digitally signed message part
--- End Message ---