diff options
-rw-r--r-- | qpkg.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -308,7 +308,12 @@ qpkg_make(depend_atom *atom) rmdir(tmpdir); - stat(buf, &st); + if (stat(buf, &st) == -1) { + warnp("could not stat '%s': %s", buf strerror(errno)); + free(buf); + return 1; + } + printf("%s%s%s KiB\n", RED, make_human_readable_str(st.st_size, 1, KILOBYTE), NORM); |