From cbb3c9a3721c90ac57fc3b770f13f483479a888d Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 28 Sep 2024 17:57:20 +0300 Subject: [PATCH] Clarify messages of get/set ext2 attributes errors. Signed-off-by: Andrew Borodin --- src/filemanager/chattr.c | 2 +- src/filemanager/file.c | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/filemanager/chattr.c b/src/filemanager/chattr.c index 7df9b50a4..91159d4c4 100644 --- a/src/filemanager/chattr.c +++ b/src/filemanager/chattr.c @@ -1233,7 +1233,7 @@ chattr_cmd (WPanel *panel) if (mc_fgetflags (vpath, &flags) != 0) { - message (D_ERROR, MSG_ERROR, _("Cannot get flags of \"%s\"\n%s"), fname->str, + message (D_ERROR, MSG_ERROR, _("Cannot get ext2 attributes of \"%s\"\n%s"), fname->str, unix_error_string (errno)); vfs_path_free (vpath, TRUE); break; diff --git a/src/filemanager/file.c b/src/filemanager/file.c index 0d5c9fe10..908fd502d 100644 --- a/src/filemanager/file.c +++ b/src/filemanager/file.c @@ -2340,7 +2340,8 @@ copy_file_file (file_op_total_context_t *tctx, file_op_context_t *ctx, else { return_status = - file_error (TRUE, _("Cannot get attributes of source file \"%s\"\n%s"), src_path); + file_error (TRUE, _("Cannot get ext2 attributes of source file \"%s\"\n%s"), + src_path); if (return_status == FILE_SKIPALL) ctx->skip_all = TRUE; if (return_status == FILE_ABORT) @@ -2411,7 +2412,8 @@ copy_file_file (file_op_total_context_t *tctx, file_op_context_t *ctx, ctx->skip_all = TRUE; else return_status = - file_error (TRUE, _("Cannot set attributes of target file \"%s\"\n%s"), + file_error (TRUE, + _("Cannot set ext2 attributes of target file \"%s\"\n%s"), dst_path); if (return_status != FILE_RETRY) @@ -2485,7 +2487,7 @@ copy_file_file (file_op_total_context_t *tctx, file_op_context_t *ctx, break; temp_status = - file_error (TRUE, _("Cannot set attributes of target file \"%s\"\n%s"), + file_error (TRUE, _("Cannot set ext2 attributes of target file \"%s\"\n%s"), dst_path); if (temp_status == FILE_SKIP) break; @@ -2909,8 +2911,9 @@ copy_file_file (file_op_total_context_t *tctx, file_op_context_t *ctx, break; } - temp_status = file_error (TRUE, _("Cannot set attributes for target file \"%s\"\n%s"), - dst_path); + temp_status = + file_error (TRUE, _("Cannot set ext2 attributes for target file \"%s\"\n%s"), + dst_path); if (temp_status == FILE_ABORT) return_status = FILE_ABORT; if (temp_status == FILE_RETRY) @@ -2997,7 +3000,8 @@ copy_dir_dir (file_op_total_context_t *tctx, file_op_context_t *ctx, const char else { return_status = - file_error (TRUE, _("Cannot get attributes of source directory \"%s\"\n%s"), s); + file_error (TRUE, _("Cannot get ext2 attributes of source directory \"%s\"\n%s"), + s); if (return_status == FILE_RETRY) { attrs_ok = TRUE;