diff options
| author | Roy Marples <roy@marples.name> | 2020-04-05 07:47:14 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-04-05 07:47:14 +0100 |
| commit | 5f42b70343bcae694748244e8aa0707aef690178 (patch) | |
| tree | a7fa7e335a55be233d1a84ee675eb28ec855dcdb /src/dhcpcd.c | |
| parent | 2c6d5fe0653ba39d7cc41ddd0cdd35661d2a0df5 (diff) | |
| download | dhcpcd-5f42b70343bcae694748244e8aa0707aef690178.tar.xz | |
privsep: If we fail to init privsep, continue
We continue if the privsep user cannot be found, so do the same
if passwd or similar is missing from the system.
This helps people who use dhcpcd in ramdisks to oneshot the config
for example to start iSCSI.
Diffstat (limited to 'src/dhcpcd.c')
| -rw-r--r-- | src/dhcpcd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 2ffea5bd..90f02ba2 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -2130,12 +2130,7 @@ printpidfile: freopen(_PATH_DEVNULL, "r", stdin); #ifdef PRIVSEP - if (ps_init(&ctx) == -1) { - if (errno != 0) { - logerr("ps_init"); - goto exit_failure; - } - } else + if (ps_init(&ctx) == 0) script_runchroot(&ctx, ifo->script); #endif |
