diff options
| author | ahrens <none@none> | 2005-10-31 11:33:35 -0800 |
|---|---|---|
| committer | ahrens <none@none> | 2005-10-31 11:33:35 -0800 |
| commit | fa9e4066f08beec538e775443c5be79dd423fcab (patch) | |
| tree | 576d99665e57bb7cb70584431adb08c14d47e3ce /usr/src/cmd/getfacl/getfacl.c | |
| parent | f1b64740276f67fc6914c1d855f2af601efe99ac (diff) | |
| download | illumos-joyent-fa9e4066f08beec538e775443c5be79dd423fcab.tar.gz | |
PSARC 2002/240 ZFS
6338653 Integrate ZFS
PSARC 2004/652 - DKIOCFLUSH
5096886 Write caching disks need mechanism to flush cache to physical media
Diffstat (limited to 'usr/src/cmd/getfacl/getfacl.c')
| -rw-r--r-- | usr/src/cmd/getfacl/getfacl.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/usr/src/cmd/getfacl/getfacl.c b/usr/src/cmd/getfacl/getfacl.c index 2c05291fbc..b2e56fdd3a 100644 --- a/usr/src/cmd/getfacl/getfacl.c +++ b/usr/src/cmd/getfacl/getfacl.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -112,6 +112,14 @@ main(int argc, char *argv[]) /* Get ACL info of the files */ errno = 0; if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) { + 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); } @@ -301,7 +309,7 @@ pruname(uid_t uid) static char uidp[10]; /* big enough */ passwdp = getpwuid(uid); - if (passwdp == (struct passwd *) NULL) { + if (passwdp == (struct passwd *)NULL) { /* could not get passwd information: display uid instead */ (void) sprintf(uidp, "%ld", (long)uid); return (uidp); @@ -316,7 +324,7 @@ prgname(gid_t gid) static char gidp[10]; /* big enough */ groupp = getgrgid(gid); - if (groupp == (struct group *) NULL) { + if (groupp == (struct group *)NULL) { /* could not get group information: display gid instead */ (void) sprintf(gidp, "%ld", (long)gid); return (gidp); |
