Print this page
12288 getfacl and setfacl could stand improvement
*** 19,36 ****
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
- #ifndef lint
- static char sccsid[] = "%Z%%M% %I% %E% SMI";
- #endif
-
/*
* getfacl [-ad] file ...
* This command displays discretionary information for a file or files.
* display format:
* # file: filename
--- 19,31 ----
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2020 Peter Tribble.
*/
/*
* getfacl [-ad] file ...
* This command displays discretionary information for a file or files.
* display format:
* # file: filename
*** 71,81 ****
int aflag = 0;
int dflag = 0;
int errflag = 0;
int savecnt;
int aclcnt;
! int mask;
aclent_t *aclp;
aclent_t *tp;
char *permp;
(void) setlocale(LC_ALL, "");
--- 66,76 ----
int aflag = 0;
int dflag = 0;
int errflag = 0;
int savecnt;
int aclcnt;
! int mask = 0;
aclent_t *aclp;
aclent_t *tp;
char *permp;
(void) setlocale(LC_ALL, "");
*** 114,124 ****
if (errno == ENOSYS) {
(void) fprintf(stderr,
gettext("File system doesn't support "
"aclent_t style ACL's.\n"
"See acl(5) for more information on "
! "Solaris ACL support.\n"));
exit(2);
}
perror(filep);
exit(2);
}
--- 109,119 ----
if (errno == ENOSYS) {
(void) fprintf(stderr,
gettext("File system doesn't support "
"aclent_t style ACL's.\n"
"See acl(5) for more information on "
! "POSIX-draft ACL support.\n"));
exit(2);
}
perror(filep);
exit(2);
}