]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: remove duplicate file_exists() definition 2440/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 30 Jun 2018 14:03:31 +0000 (16:03 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 1 Jul 2018 18:00:15 +0000 (20:00 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/tests/attach.c

index 7a1519b9fc79433c1ac3e31bc09f9d1ef4762b3d..07e641d56d726ec29e3aebe62698eff1e95580d5 100644 (file)
 static const char *lsm_config_key = NULL;
 static const char *lsm_label = NULL;
 
-bool file_exists(const char *f)
-{
-       struct stat statbuf;
-
-       return stat(f, &statbuf) == 0;
-}
-
 static void test_lsm_detect(void)
 {
        if (lsm_enabled()) {