mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 18:07:30 +00:00
parse: remove access() check
We can just fail on open() and not waste an additional syscall. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
8b013632c6
commit
46ac8c5b35
@ -2499,10 +2499,6 @@ int lxc_config_read(const char *file, struct lxc_conf *conf, bool from_include)
|
||||
c.conf = conf;
|
||||
c.from_include = from_include;
|
||||
|
||||
ret = access(file, R_OK);
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
/* Catch only the top level config file name in the structure. */
|
||||
if (!conf->rcfile)
|
||||
conf->rcfile = strdup(file);
|
||||
|
Loading…
Reference in New Issue
Block a user