From: Paul Mackerras Date: Tue, 22 Mar 2005 10:27:07 +0000 (+0000) Subject: From Marco D'Itri: fix for an earlier patch from him. X-Git-Tag: ppp-2.4.7~158 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=bfe93d2ac77c628c15ed7acf07ce6b6ef36f0831 From Marco D'Itri: fix for an earlier patch from him. --- diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index e963c79..05158e3 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -2808,8 +2808,8 @@ sys_check_options(void) if (ipxcp_protent.enabled_flag) { struct stat stat_buf; - if ((path = path_to_procfs("/net/ipx/interface")) == 0 - || (path = path_to_procfs("/net/ipx_interface")) == 0 + if ( ((path = path_to_procfs("/net/ipx/interface")) == NULL + && (path = path_to_procfs("/net/ipx_interface")) == NULL) || lstat(path, &stat_buf) < 0) { error("IPX support is not present in the kernel\n"); ipxcp_protent.enabled_flag = 0;