Package: gidentd Version: 0.4.5+dfsg1-0.1 Followup-For: Bug #377891 Hi !
Here is a patch to correct this issue. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-1-amd64 (SMP w/2 CPU cores) Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/bash
--- tmp/gidentd-0.4.5+dfsg1/debian/patches/02_231436.dpatch 2007-07-29 09:34:34.000000000 +0200 +++ src/gidentd-0.4.5+dfsg1/debian/patches/02_231436.dpatch 2007-07-29 09:31:31.000000000 +0200 @@ -35,18 +35,18 @@ + +FILE *fnet, *fnet6; + -+static int open_proc_files(void) ++static int open_proc_files(int forcev4) +{ + if (!(fnet = fopen("/proc/net/tcp", "r"))) { + Log("Unable to open /proc/net/tcp: %s", strerror(errno)); + return(-1); + } -+ if (!(fnet6 = fopen("/proc/net/tcp6", "r"))) { ++ if ((!forcev4) && (!(fnet6 = fopen("/proc/net/tcp6", "r")))) { + Log("Unable to open /proc/net/tcp6: %s", strerror(errno)); + return(-1); + } + setbuf(fnet, NULL); -+ setbuf(fnet6, NULL); ++ if (!forcev4) setbuf(fnet6, NULL); + return 0; +} + @@ -61,7 +61,7 @@ - else { + if(inetd) { + CloseFiles(2); // close open files -+ if (open_proc_files() < 0) ++ if (open_proc_files(config.forcev4) < 0) + return 1; + } else { Log("gidentd v%s started in daemon mode.", VERSION); @@ -73,7 +73,7 @@ - exit(1); - } + -+ if (open_proc_files() < 0) ++ if (open_proc_files(config.forcev4) < 0) + return 1; + + setgid(getpwnam("nobody")->pw_gid);