=== modified file 'src/main.c' --- src/main.c 2016-04-15 20:20:28 +0000 +++ src/main.c 2016-04-29 13:44:44 +0000 @@ -347,12 +347,12 @@ { debug("%s", __func__); - // FIXME: hardcoded "ubuntu-core.*" + // FIXME: hardcoded "ubuntu-core" glob_t glob_res; - if (glob("/snap/ubuntu-core*/current/", 0, NULL, &glob_res) != 0) { + if (glob("/snap/ubuntu-core/current/", 0, NULL, &glob_res) != 0) { die("can not find a snappy os"); } - if ((glob_res.gl_pathc = !1)) { + if ((glob_res.gl_pathc != 1)) { die("expected 1 os snap, found %i", (int)glob_res.gl_pathc); } char *mountpoint = glob_res.gl_pathv[0];