- if (irixsemantics && acl->acl_cnt == ACL_NOT_PRESENT) {
- buf_acl = strdup("irix-empty");
- }
- else if (!irixsemantics && acl->acl_cnt == 0) {
- buf_acl = strdup("linux-empty");
- }
- else {
- buf_acl = acl_to_short_text (acl, (ssize_t *) NULL);
- if (buf_acl == NULL) {
- fprintf (stderr, "%s: error converting ACL to short text "
- "for file \"%s\": %s\n",
- prog, file, strerror(errno));
- return 0;
- }
- }
- printf("%s: default %s\n", file, buf_acl);
+ printf("%s: default ", file);
+ acl_print(stdout, acl, NULL, TEXT_ABBREVIATE||TEXT_NO_ENDOFLINE);