mirror of
https://github.com/sheumann/hush.git
synced 2025-01-16 09:30:29 +00:00
ifupdown: do not complain if !/var/run/ifstate
This commit is contained in:
parent
3aba666514
commit
2b52b2797b
@ -1119,7 +1119,7 @@ int ifupdown_main(int argc, char **argv)
|
|||||||
if (!startup_PATH) startup_PATH = "";
|
if (!startup_PATH) startup_PATH = "";
|
||||||
|
|
||||||
/* Read the previous state from the state file */
|
/* Read the previous state from the state file */
|
||||||
state_fp = fopen_or_warn("/var/run/ifstate", "r");
|
state_fp = fopen("/var/run/ifstate", "r");
|
||||||
if (state_fp) {
|
if (state_fp) {
|
||||||
char *start, *end_ptr;
|
char *start, *end_ptr;
|
||||||
while ((start = xmalloc_fgets(state_fp)) != NULL) {
|
while ((start = xmalloc_fgets(state_fp)) != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user