Your message dated Mon, 03 Dec 2007 18:02:11 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#451324: fixed in sudo 1.6.9p9-1
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: sudo
Version: 1.6.9p6-1

On a setup where the limit for open files is set to 1048576, sudo takes half
a second to do the simplest task. The reason behind this is that at startup
it closes all fds after the one associated with stderr, which makes 1048573
system calls.

There is code in sudo which looks for open fds in /dev/fd/, but the
configure fails to detect that the libc has dirfd, and so sudo uses the dumb
algorithm.

Configure tries to compile this code,

#include <sys/types.h>
#include <dirent.h>
int
main ()
{
DIR d; (void)dirfd(&d);
  ;
  return 0;
}

which fails because the glibc (at least in 2.6.1-1+b1) includes do not
expose the structure of a DIR * (and there seems no reason to do so)

I suggest the following patch be applied. (autoconf has to be rerun after
this)
---
Signed-off-by: Quentin Godfroy <[EMAIL PROTECTED]>
--- configure.in.bak    2007-11-15 00:20:03.000000000 +0100
+++ configure.in        2007-11-15 00:20:54.000000000 +0100
@@ -1727,7 +1727,7 @@ dnl
 dnl Check for the dirfd function/macro.  If not found, look for dd_fd in DIR.
 dnl
 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
-#include <$ac_header_dirent>]], [[DIR d; (void)dirfd(&d);]])], 
[AC_DEFINE(HAVE_DIRFD)], [AC_TRY_LINK([#include <sys/types.h>
+#include <$ac_header_dirent>]], [[DIR *d; (void)dirfd(d);]])], 
[AC_DEFINE(HAVE_DIRFD)], [AC_TRY_LINK([#include <sys/types.h>
 #include <$ac_header_dirent>], [DIR d; memset(&d, 0, sizeof(d)); 
return(d.dd_fd);], [AC_DEFINE(HAVE_DD_FD)])])
 dnl
 dnl If NEED_SNPRINTF is set, add snprintf.c to LIBOBJS



--- End Message ---
--- Begin Message ---
Source: sudo
Source-Version: 1.6.9p9-1

We believe that the bug you reported is fixed in the latest version of
sudo, which is due to be installed in the Debian FTP archive:

sudo-ldap_1.6.9p9-1_i386.deb
  to pool/main/s/sudo/sudo-ldap_1.6.9p9-1_i386.deb
sudo_1.6.9p9-1.diff.gz
  to pool/main/s/sudo/sudo_1.6.9p9-1.diff.gz
sudo_1.6.9p9-1.dsc
  to pool/main/s/sudo/sudo_1.6.9p9-1.dsc
sudo_1.6.9p9-1_i386.deb
  to pool/main/s/sudo/sudo_1.6.9p9-1_i386.deb
sudo_1.6.9p9.orig.tar.gz
  to pool/main/s/sudo/sudo_1.6.9p9.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bdale Garbee <[EMAIL PROTECTED]> (supplier of updated sudo package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 03 Dec 2007 10:26:51 -0700
Source: sudo
Binary: sudo-ldap sudo
Architecture: source i386
Version: 1.6.9p9-1
Distribution: unstable
Urgency: low
Maintainer: Bdale Garbee <[EMAIL PROTECTED]>
Changed-By: Bdale Garbee <[EMAIL PROTECTED]>
Description: 
 sudo       - Provide limited super user privileges to specific users
 sudo-ldap  - Provide limited super user privileges to specific users
Closes: 343268 388659 448628 451324
Changes: 
 sudo (1.6.9p9-1) unstable; urgency=low
 .
   * new upstream version
   * debian/rules: configure a more informative default password prompt to
     reduce confusion when using sudo to invoke commands which also ask for
     passwords, closes: #343268
   * auth/pam.c: don't use the PAM prompt if the user explicitly requested
     a custom prompt, closes: #448628.
   * fix configure's ability to discover that libc has dirfd, closes: #451324
   * make default editor be /usr/bin/vi instead of /usr/bin/editor, so that
     the command 'visudo' invokes a vi variant by default as documented,
     closes: #388659
Files: 
 8a775e93ddc75f55bfee1b35a9e69ae1 614 admin optional sudo_1.6.9p9-1.dsc
 2bff66757a3864a7d509343587513755 578259 admin optional sudo_1.6.9p9.orig.tar.gz
 0e8aaf64503f68ad34fde202b5b39ca0 21231 admin optional sudo_1.6.9p9-1.diff.gz
 3a671c4af43993433cf8f98aa22658e2 170924 admin optional sudo_1.6.9p9-1_i386.deb
 a30fcb2a6e417c1a83cf7aeea33e6d4e 182514 admin optional 
sudo-ldap_1.6.9p9-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHVEGtZKfAp/LPAagRApvBAJ9LPss1fhF+x5qvSt/ogRFBrExgJwCeKLZV
85lVf5sO8tNf6tKNruCZ3t4=
=GluW
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to