/*
- * "$Id: cert.c 5305 2006-03-18 03:05:12Z mike $"
+ * "$Id$"
*
* Authentication certificate routines for the Common UNIX
* Printing System (CUPS).
# ifdef HAVE_MBR_UID_TO_UUID
uuid_t group; /* Group ID */
# endif /* HAVE_MBR_UID_TO_UUID */
+ static int acls_not_supported = 0;
+ /* Only warn once */
#endif /* HAVE_ACL_INIT */
if (acl_valid(acl))
{
- char *text, *textptr;
+ char *text, *textptr; /* Temporary string */
+
cupsdLogMessage(CUPSD_LOG_ERROR, "ACL did not validate: %s",
strerror(errno));
# endif /* HAVE_MBR_UID_TO_UUID */
if (acl_set_fd(fd, acl))
- cupsdLogMessage(CUPSD_LOG_ERROR,
- "Unable to set ACLs on root certificate \"%s\" - %s",
- filename, strerror(errno));
+ {
+ if (errno != EOPNOTSUPP || !acls_not_supported)
+ cupsdLogMessage(CUPSD_LOG_ERROR,
+ "Unable to set ACLs on root certificate \"%s\" - %s",
+ filename, strerror(errno));
+
+ if (errno == EOPNOTSUPP)
+ acls_not_supported = 1;
+ }
+
acl_free(acl);
}
#endif /* HAVE_ACL_INIT */
/*
- * End of "$Id: cert.c 5305 2006-03-18 03:05:12Z mike $".
+ * End of "$Id$".
*/