From: Christian Brauner Date: Sat, 6 Oct 2018 22:42:44 +0000 (+0200) Subject: parse: remove access() check X-Git-Tag: lxc-3.1.0~59^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46ac8c5b35089048e35b87f4ebdffb23649aa4cb;p=thirdparty%2Flxc.git parse: remove access() check We can just fail on open() and not waste an additional syscall. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 8e13b123d..d49afae11 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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);