diff options
Diffstat (limited to 'libfstools/common.c')
-rw-r--r-- | libfstools/common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libfstools/common.c b/libfstools/common.c index 1b22d2c..55c1b87 100644 --- a/libfstools/common.c +++ b/libfstools/common.c @@ -117,7 +117,11 @@ int block_volume_format(struct volume *v, uint64_t offset, const char *bdev) switch (volume_identify(v)) { case FS_TARGZ: snprintf(str, sizeof(str), "gzip -cd %s > /tmp/sysupgrade.tar", v->blk); - system(str); + ret = system(str); + if (ret < 0) { + ULOG_ERR("failed extracting %s\n", v->blk); + break; + } /* fall-through */ case FS_NONE: ULOG_INFO("overlay filesystem in %s has not been formatted yet\n", v->blk); |