Print this page
12288 getfacl and setfacl could stand improvement

@@ -19,18 +19,13 @@
  * CDDL HEADER END
  */
 /*
  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright 2020 Peter Tribble.
  */
 
-#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

@@ -71,11 +66,11 @@
         int             aflag = 0;
         int             dflag = 0;
         int             errflag = 0;
         int             savecnt;
         int             aclcnt;
-        int             mask;
+        int             mask = 0;
         aclent_t        *aclp;
         aclent_t        *tp;
         char            *permp;
 
         (void) setlocale(LC_ALL, "");

@@ -114,11 +109,11 @@
                         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"));
+                                    "POSIX-draft ACL support.\n"));
                                 exit(2);
                         }
                         perror(filep);
                         exit(2);
                 }