diff options
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -473,6 +473,7 @@ int cfprintf(CFILE *cfile, const char *format, ...) { FILE *file = cfile->file; int ret = -1; + int error = errno; va_list args; va_start(args, format); @@ -517,6 +518,12 @@ int cfprintf(CFILE *cfile, const char *format, ...) { } break; + case 'm': + if (fputs(strerror(error), file) == EOF) { + goto done; + } + break; + case 'P': if (print_path(cfile, va_arg(args, const struct BFTW *)) != 0) { goto done; |