Package: ipxripd
Version: 0.7-13.1
Followup-For: Bug #230358


diff -ur ipxripd-0.7/ipxkern.c ipxripd-0.7.new/ipxkern.c
--- ipxripd-0.7/ipxkern.c       1996-02-01 18:56:07.000000000 +0200
+++ ipxripd-0.7.new/ipxkern.c   2005-02-08 12:09:43.000000000 +0200
@@ -53,11 +53,15 @@
 
        ipx_route = fopen("/proc/net/ipx_route", "r");
 
-       if (ipx_route == NULL)
+       if (!ipx_route)
        {
-               sprintf(ipx_err_string, "open ipx_route: %s",
-                       strerror(errno));
-               return -1;
+               ipx_route = fopen("/proc/net/ipx/route", "r");
+               if(!ipx_route)
+               {
+                       sprintf(ipx_err_string, "Neighter /proc/net/ipx_route 
nor /proc/net/ipx/route file can be opened: %s",
+                               strerror(errno));
+                       return -1;
+               }
        }
 
        /* ignore header line */
@@ -111,13 +115,17 @@
 
        ipx_ifc = fopen("/proc/net/ipx_interface", "r");
 
-       if (ipx_ifc == NULL)
+       if (!ipx_ifc)
        {
-               sprintf(ipx_err_string, "open ipx_interface: %s",
-                       strerror(errno));
-               return -1;
+               ipx_ifc = fopen("/proc/net/ipx/interface", "r");
+               if(!ipx_ifc)
+               {
+                       sprintf(ipx_err_string, "Neighter /proc/net/ipx_route 
nor /proc/net/ipx/route file can be opened: %s",
+                               strerror(errno));
+                               return -1;
+               }
        }
-
+       
        /* ignore header line */
        fgets(buf, sizeof(buf), ipx_ifc);
 
-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-rc2
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages ipxripd depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to