mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
transfused: it is ok if the pidfile does not yet exist
This commit is contained in:
parent
eb199ca9d7
commit
cbd5ca5991
@ -413,7 +413,8 @@ void parse_parameters(int argc, char * argv[], parameters * params) {
|
|||||||
if (errflg) die(2, NULL, usage);
|
if (errflg) die(2, NULL, usage);
|
||||||
|
|
||||||
if (params->pidfile != NULL && access(params->pidfile, W_OK))
|
if (params->pidfile != NULL && access(params->pidfile, W_OK))
|
||||||
die(2, "", "-p %s path to pidfile must be writable: ", params->pidfile);
|
if (errno != ENOENT)
|
||||||
|
die(2, "", "-p %s path to pidfile must be writable: ", params->pidfile);
|
||||||
|
|
||||||
if (params->fusermount == NULL)
|
if (params->fusermount == NULL)
|
||||||
params->fusermount = default_fusermount;
|
params->fusermount = default_fusermount;
|
||||||
|
Loading…
Reference in New Issue
Block a user