diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-04 08:42:50 -0500 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-04 08:42:50 -0500 | 
| commit | 39861d1872731119795f954acc0412af64cd539d (patch) | |
| tree | 3ccec5b30fe82cf461051ca8fa66ace6ec062d27 | |
| parent | 674768caa67722992a16fbe1453ce625fa149955 (diff) | |
| download | stasis-39861d1872731119795f954acc0412af64cd539d.tar.gz | |
Actually exit when a path is /, instead of removing the entire filesystem
| -rw-r--r-- | src/recipe.c | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/src/recipe.c b/src/recipe.c index 159affe..1f8ddb7 100644 --- a/src/recipe.c +++ b/src/recipe.c @@ -23,6 +23,7 @@ int recipe_clone(char *recipe_dir, char *url, char *gitref, char **result) {              fprintf(stderr, "OMC is misconfigured. Please check your output path(s) immediately.\n");              fprintf(stderr, "recipe_dir = '%s'\nreponame = '%s'\ndestdir = '%s'\n",                      recipe_dir, reponame, destdir); +            exit(1);          }          if (rmtree(destdir)) {              guard_free(*result) | 
