Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 333678 Details for
Bug 444532
net-misc/cfengine try to exec /sbin/ifconfig instead of /bin/ifconfig
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Auto detect ifconfig location with configure script
detect_ifconfig_path.patch (text/plain), 1.35 KB, created by
LABBE Corentin
on 2012-12-29 14:24:17 UTC
(
hide
)
Description:
Auto detect ifconfig location with configure script
Filename:
MIME Type:
Creator:
LABBE Corentin
Created:
2012-12-29 14:24:17 UTC
Size:
1.35 KB
patch
obsolete
>--- src/conf.h.in.old 2012-12-28 16:18:23.000000000 +0100 >+++ src/conf.h.in 2012-12-28 16:19:08.000000000 +0100 >@@ -773,3 +773,6 @@ > > /* Define to rpl_vsnprintf if the replacement function should be used. */ > #undef vsnprintf >+ >+/* Define to the path for running ifconfig -a */ >+#undef IFCONFIG_RUN >--- src/unix.c.old 2012-12-28 16:05:28.000000000 +0100 >+++ src/unix.c 2012-12-28 16:13:15.000000000 +0100 >@@ -900,7 +900,7 @@ > > default: > >- if ((pp = cf_popen("/sbin/ifconfig -a", "r")) == NULL) >+ if ((pp = cf_popen(IFCONFIG_RUN, "r")) == NULL) > { > CfOut(cf_verbose, "", "Could not find interface info\n"); > return; >--- configure.ac.old 2012-12-29 11:38:20.000000000 +0100 >+++ configure.ac 2012-12-29 11:49:11.000000000 +0100 >@@ -882,6 +882,16 @@ > > > dnl ###################################################################### >+dnl Find the path to ifconfig >+dnl ###################################################################### >+ >+AC_PATH_PROG(IFCONFIG_PATH,ifconfig) >+if test x"$IFCONFIG_PATH" = x"" ; then >+ AC_MSG_ERROR([Cannot found the ifconfig binary.]) >+fi >+AC_DEFINE_UNQUOTED(IFCONFIG_RUN, "$IFCONFIG_PATH -a", [the path to run ifconfig -a]) >+ >+dnl ###################################################################### > dnl Summarize > dnl ###################################################################### >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 444532
:
330392
| 333678