mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +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 = "";
|
||||
|
||||
/* 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) {
|
||||
char *start, *end_ptr;
|
||||
while ((start = xmalloc_fgets(state_fp)) != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user