setfacl(2.4.0.13): options --no-mask and --mask

Houder houder@xs4all.nl
Sun Dec 20 11:29:00 GMT 2015


Hi Corinna,

Euh ... I do not pretend to be familiar (less understand) with the 
features
that go into 2.4.0 (as I have no need for them) ...

... but, by just browsing the source code of setfacl and by just looking 
at
the user interface of setfacl ... See below.

Regards,
Henri

Source code of setfacl (2.4.0.13):

struct option longopts[] = {
   {"remove-all", no_argument, NULL, 'b'},
   {"delete", required_argument, NULL, 'x'},
   {"file", required_argument, NULL, 'f'},
   {"remove-default", no_argument, NULL, 'k'},
   {"modify", required_argument, NULL, 'm'},
   {"no-mask", required_argument, NULL, 'n'}, <==== no_argument?
   {"mask", required_argument, NULL, '\n'}, <==== no_argument?
   {"replace", no_argument, NULL, 'r'},
   {"substitute", required_argument, NULL, 's'},
   {"help", no_argument, NULL, 'h'},
   {"version", no_argument, NULL, 'V'},
   {0, no_argument, NULL, 0}
};
const char *opts = "bd:f:hkm:nrs:Vx:";

-----
%% uname -a
CYGWIN_NT-6.1-WOW Seven 2.4.0(0.292/5/3) 2015-12-19 21:08 i686 Cygwin
%% touch foo.txt
%% setfacl --no-mask -m g:Replicator:rw- foo.txt
Usage: setfacl [-n] {-f ACL_FILE | -s acl_entries} FILE...
        setfacl [-n] {[-bk]|[-x acl_entries] [-m acl_entries]} FILE...
[snip]

Try 'setfacl --help' for more information.
%% setfacl --no-mask Corinna -m g:Replicator:rw- foo.txt <==== ?
%%

%% setfacl --mask -m g:Replicator:rw- foo.txt
Usage: setfacl [-n] {-f ACL_FILE | -s acl_entries} FILE...
        setfacl [-n] {[-bk]|[-x acl_entries] [-m acl_entries]} FILE...
[snip]

Try 'setfacl --help' for more information.
%% setfacl --mask Corinna -m g:Replicator:rw- foo.txt <==== ?
%%

=====

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list