From bd5b81faff35167bb6afb398b8827e03e8820efb Mon Sep 17 00:00:00 2001 From: akruphi <92621645+akruphi@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:15:28 +0300 Subject: [PATCH] Chattr / chflags: minor --- far2l/bootstrap/scripts/farlang.templ.m4 | 18 ++++++------ far2l/src/chattr.cpp | 36 ++++++++++++------------ 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/far2l/bootstrap/scripts/farlang.templ.m4 b/far2l/bootstrap/scripts/farlang.templ.m4 index ba1e68f2a6..01c2cabaad 100644 --- a/far2l/bootstrap/scripts/farlang.templ.m4 +++ b/far2l/bootstrap/scripts/farlang.templ.m4 @@ -14497,15 +14497,15 @@ MenuAttributes "А&трыбуты файлаў Ctrl+A" MenuChattr -"cha&ttr / chflags Ctrl+Alt+A" -"cha&ttr / chflags Ctrl+Alt+A" -upd:"cha&ttr / chflags Ctrl+Alt+A" -upd:"cha&ttr / chflags Ctrl+Alt+A" -upd:"cha&ttr / chflags Ctrl+Alt+A" -upd:"cha&ttr / chflags Ctrl+Alt+A" -upd:"cha&ttr / chflags Ctrl+Alt+A" -upd:"cha&ttr / chflags Ctrl+Alt+A" -upd:"cha&ttr / chflags Ctrl+Alt+A" +"chattr / chflag&s Ctrl+Alt+A" +"chattr / ch&flags Ctrl+Alt+A" +upd:"chattr / ch&flags Ctrl+Alt+A" +upd:"chattr / ch&flags Ctrl+Alt+A" +upd:"c&hattr / chflags Ctrl+Alt+A" +upd:"chattr / ch&flags Ctrl+Alt+A" +upd:"chattr / ch&flags Ctrl+Alt+A" +upd:"chattr / chflag&s Ctrl+Alt+A" +upd:"c&hattr / chflags Ctrl+Alt+A" MenuApplyCommand "Применить коман&ду Ctrl+G" diff --git a/far2l/src/chattr.cpp b/far2l/src/chattr.cpp index 112492f76d..dfb8d1556b 100644 --- a/far2l/src/chattr.cpp +++ b/far2l/src/chattr.cpp @@ -121,62 +121,62 @@ static struct { // see actual constants in // Super-user and owner changeable flags #ifdef UF_NODUMP // 0x00000001 - { UF_NODUMP, '+', "nodump: do not dump file (owner or super-user only)" }, + { UF_NODUMP, '+', "nodump: do not dump file (owner or super-user only)" }, #endif #ifdef UF_IMMUTABLE // 0x00000002 - { UF_IMMUTABLE, '+', "uimmutable: file may not be changed (owner or super-user only)" }, + { UF_IMMUTABLE, '+', "uimmutable: file may not be changed (owner or super-user only)" }, #endif #ifdef UF_APPEND // 0x00000004 - { UF_APPEND, '+', "uappend: writes to file may only append (owner or super-user only)" }, + { UF_APPEND, '+', "uappend: writes to file may only append (owner or super-user only)" }, #endif #ifdef UF_OPAQUE // 0x00000008 - { UF_OPAQUE, '+', "opaque: directory is opaque wrt. union (owner or super-user only)" }, + { UF_OPAQUE, '+', "opaque: directory is opaque wrt. union (owner or super-user only)" }, #endif #ifdef UF_NOUNLINK // 0x00000010 - { UF_NOUNLINK, '+', "uunlink: file may not be removed or renamed (owner or super-user only)" }, + { UF_NOUNLINK, '+', "uunlink: file may not be removed or renamed (owner or super-user only)" }, #endif #ifdef UF_COMPRESSED // 0x00000020 { UF_COMPRESSED, '+', "ucompressed: file is compressed (macOS only) (owner or super-user only)" }, #endif #ifdef UF_TRACKED // 0x00000040 - { UF_TRACKED, '+', "utracked: renames and deletes are tracked (macOS only) (owner or super-user only)" }, + { UF_TRACKED, '+', "utracked: renames and deletes are tracked (macOS only) (owner or super-user only)" }, #endif #ifdef UF_SYSTEM // 0x00000080 - { UF_SYSTEM, '+', "usystem: Windows system file bit (owner or super-user only)" }, + { UF_SYSTEM, '+', "usystem: Windows system file bit (owner or super-user only)" }, #endif #ifdef UF_SPARSE // 0x00000100 - { UF_SPARSE, '+', "usparse: sparse file (owner or super-user only)" }, + { UF_SPARSE, '+', "usparse: sparse file (owner or super-user only)" }, #endif #ifdef UF_OFFLINE // 0x00000200 - { UF_OFFLINE, '+', "uoffline: file is offline (owner or super-user only)" }, + { UF_OFFLINE, '+', "uoffline: file is offline (owner or super-user only)" }, #endif #ifdef UF_REPARSE // 0x00000400 - { UF_REPARSE, '+', "ureparse: Windows reparse point file bit (owner or super-user only)" }, + { UF_REPARSE, '+', "ureparse: Windows reparse point file bit (owner or super-user only)" }, #endif #ifdef UF_ARCHIVE // 0x00000800 - { UF_ARCHIVE, '+', "uarchive: file needs to be archived (owner or super-user only)" }, + { UF_ARCHIVE, '+', "uarchive: file needs to be archived (owner or super-user only)" }, #endif #ifdef UF_READONLY // 0x00001000 - { UF_READONLY, '+', "ureadonly: Windows readonly file bit (owner or super-user only)" }, + { UF_READONLY, '+', "ureadonly: Windows readonly file bit (owner or super-user only)" }, #endif #ifdef UF_HIDDEN // 0x00008000 - { UF_HIDDEN, '+', "uhidden: file is hidden (owner or super-user only)" }, + { UF_HIDDEN, '+', "uhidden: file is hidden (owner or super-user only)" }, #endif // Super-user changeable flags #ifdef SF_ARCHIVED // 0x00010000 - { SF_ARCHIVED, '+', "sarchive: file is archived (super-user only)" }, + { SF_ARCHIVED, '+', "sarchive: file is archived (super-user only)" }, #endif #ifdef SF_IMMUTABLE // 0x00020000 - { SF_IMMUTABLE, '+', "simmutable: file may not be changed (super-user only)" }, + { SF_IMMUTABLE, '+', "simmutable: file may not be changed (super-user only)" }, #endif #ifdef SF_APPEND // 0x00040000 - { SF_APPEND, '+', "sappend: writes to file may only append (super-user only)" }, + { SF_APPEND, '+', "sappend: writes to file may only append (super-user only)" }, #endif #ifdef SF_NOUNLINK // 0x00100000 - { SF_NOUNLINK, '+', "sunlink: file may not be removed or renamed (super-user only)" }, + { SF_NOUNLINK, '+', "sunlink: file may not be removed or renamed (super-user only)" }, #endif #ifdef SF_SNAPSHOT // 0x00200000 - { SF_SNAPSHOT, '+', "snapshot: snapshot inode (filesystems do not allow changing this flag)" }, + { SF_SNAPSHOT, '+', "snapshot: snapshot inode (filesystems do not allow changing this flag)" }, #endif #endif };