Skip to content

Commit

Permalink
main: handle temporary directory creation failure
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
  • Loading branch information
jluebbe committed Feb 22, 2016
1 parent 056d917 commit 7db001d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,13 @@ static gboolean info_start(int argc, char **argv)

g_message("checking manifest for: %s", argv[2]);

tmpdir = g_dir_make_tmp("bundle-XXXXXX", NULL);
tmpdir = g_dir_make_tmp("bundle-XXXXXX", &error);
if (!tmpdir) {
g_warning("%s", error->message);
g_clear_error(&error);
goto out;
}

bundledir = g_build_filename(tmpdir, "bundle-content", NULL);
manifestpath = g_build_filename(bundledir, "manifest.raucm", NULL);

Expand Down

0 comments on commit 7db001d

Please sign in to comment.