ALT Linux Bugzilla
– Attachment 3366 Details for
Bug 19183
etcnet iftab support
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
etcnet iftab support
ifrename.c-alt-etcnet-support.diff (text/plain), 589 bytes, created by
viy
on 2009-03-14 15:20:51 MSK
(
hide
)
Description:
etcnet iftab support
Filename:
MIME Type:
Creator:
viy
Created:
2009-03-14 15:20:51 MSK
Size:
589 bytes
patch
obsolete
>--- ifrename.c.orig 2009-03-13 22:05:57 +0200 >+++ ifrename.c 2009-03-13 23:29:38 +0200 >@@ -59,6 +59,7 @@ > > /* Our default configuration file */ > const char DEFAULT_CONF[] = "/etc/iftab"; >+const char ETCNET_CONF[] = "/etc/net/iftab"; > > /* Debian stuff */ > const char DEBIAN_CONFIG_FILE[] = "/etc/network/interfaces"; >@@ -2620,6 +2621,10 @@ > int is_debian = 0; > int skfd; > int ret; >+ FILE * file_exist; >+ file_exist = fopen(DEFAULT_CONF, "r"); >+ if(!file_exist) conf_file = ETCNET_CONF; >+ else fclose(file_exist); > > /* Loop over all command line options */ > while(1)
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 19183
: 3366