Refusing to apply -chattr to non-dir, non-regular files
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH XORRISO 1 "Version 1.5.7, Aug 06, 2024"
|
||||
.TH XORRISO 1 "Version 1.5.7, Aug 07, 2024"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
@ -2018,7 +2018,8 @@ Use code \\000 for 0\-bytes.
|
||||
.TP
|
||||
\fB\-chattr\fR mode iso_rr_path [***]
|
||||
Set or unset Linux file attributes like program chattr(1) would do to disk
|
||||
files.
|
||||
files. Applying this command to files which are neither directory nor regular
|
||||
data file will yield a SORRY event, unless the mode is "\-\-remove\-lfa\-flags".
|
||||
.br
|
||||
The first letter of the mode string determines what to do. The other letters
|
||||
are symbolic attribute flag letters out of the set "aAcCdDeEFhiIjNmPsStTuVxZ"
|
||||
@ -2047,7 +2048,11 @@ but \-find test \-has_lfa_flags "\-" will match the file afterwards.
|
||||
Example: \-chattr +sDu /my/file /my/other_file \-\-
|
||||
.TP
|
||||
\fB\-chattr_r\fR mode iso_rr_path [***]
|
||||
Like \-chattr but affecting all files below given directories.
|
||||
Like \-chattr but affecting also all suitable files below the given directories.
|
||||
Except with mode "\-\-remove\-lfa\-flags", the given iso_rr_path parameters need
|
||||
to be directories or regular data files or else a SORRY event will happen.
|
||||
Files below the given directories will be skipped silently if their type is
|
||||
not suitable for \-chattr.
|
||||
.TP
|
||||
\fB\-alter_date\fR type timestring iso_rr_path [***]
|
||||
Alter the date entries of files in the ISO image. type may be one of
|
||||
@ -2251,10 +2256,9 @@ E.g. look for files with both flags 'i' (immutable) and 'd' (no dump) set:
|
||||
.br
|
||||
\fB\-has_some_lfa_flags_of\fR flag_letters :
|
||||
.br
|
||||
Similar to \-has_lfa_flags but matching files which have Linux file attributes
|
||||
attached and have at least one of the flags set which correspond to the
|
||||
characters in the string flag_letters. The flag_letters string "\-" never
|
||||
matches any file.
|
||||
Similar to \-has_lfa_flags but matching files which have at least one of the
|
||||
flags set which correspond to the characters in the string flag_letters.
|
||||
The flag_letters string "\-" never matches any file.
|
||||
E.g. look for files which have 'i' or 'a' or both of them set:
|
||||
.br
|
||||
\-has_some_lfa_flags_of ia
|
||||
@ -2495,7 +2499,8 @@ Command \-backslash_codes does not affect the output.
|
||||
shows the Linux file attribute flags like command \-lsattrd does.
|
||||
.br
|
||||
\fBchattr\fR
|
||||
applies \-chattr with the given mode.
|
||||
applies \-chattr with the given mode. Other than command \-chattr this silently
|
||||
skips any file which are not \-type "dir" or "file".
|
||||
.br
|
||||
E.g.: \-exec chattr +sDu \-\-
|
||||
.br
|
||||
|
Reference in New Issue
Block a user