#
-# "$Id: Makefile,v 1.46 2002/12/17 19:00:12 swdev Exp $"
+# "$Id: Makefile,v 1.47 2003/03/05 20:42:28 mike Exp $"
#
# Scheduler Makefile for the Common UNIX Printing System (CUPS).
#
$(INSTALL_DIR) $(SERVERROOT)/interfaces
$(INSTALL_DIR) $(SERVERROOT)/ppd
$(INSTALL_DIR) $(LOGDIR)
- $(INSTALL_DIR) -m 700 $(REQUESTS)
- $(INSTALL_DIR) -m 1700 $(REQUESTS)/tmp
+ $(INSTALL_DIR) -m 710 $(REQUESTS)
+ $(INSTALL_DIR) -m 1710 $(REQUESTS)/tmp
#
#
-# End of "$Id: Makefile,v 1.46 2002/12/17 19:00:12 swdev Exp $".
+# End of "$Id: Makefile,v 1.47 2003/03/05 20:42:28 mike Exp $".
#
/*
- * "$Id: conf.c,v 1.124 2003/02/05 21:10:15 mike Exp $"
+ * "$Id: conf.c,v 1.125 2003/03/05 20:42:28 mike Exp $"
*
* Configuration routines for the Common UNIX Printing System (CUPS).
*
if (ServerCertificate[0] != '/')
SetStringf(&ServerCertificate, "%s/%s", ServerRoot, ServerCertificate);
+# if defined(HAVE_LIBSSL) || defined(HAVE_GNUTLS)
chown(ServerCertificate, run_user, Group);
chmod(ServerCertificate, ConfigFilePerm);
-# if defined(HAVE_LIBSSL) || defined(HAVE_GNUTLS)
if (ServerKey[0] != '/')
SetStringf(&ServerKey, "%s/%s", ServerRoot, ServerKey);
chmod(temp, 0711);
snprintf(temp, sizeof(temp), "%s/ppd", ServerRoot);
- chown(temp, User, Group);
+ chown(temp, run_user, Group);
chmod(temp, 0755);
snprintf(temp, sizeof(temp), "%s/ssl", ServerRoot);
snprintf(temp, sizeof(temp), "%s/classes.conf", ServerRoot);
chown(temp, run_user, Group);
+#ifdef __APPLE__
+ chmod(temp, 0600);
+#else
chmod(temp, ConfigFilePerm);
+#endif /* __APPLE__ */
snprintf(temp, sizeof(temp), "%s/printers.conf", ServerRoot);
chown(temp, run_user, Group);
+#ifdef __APPLE__
+ chmod(temp, 0600);
+#else
chmod(temp, ConfigFilePerm);
+#endif /* __APPLE__ */
snprintf(temp, sizeof(temp), "%s/passwd.md5", ServerRoot);
chown(temp, User, Group);
/*
- * End of "$Id: conf.c,v 1.124 2003/02/05 21:10:15 mike Exp $".
+ * End of "$Id: conf.c,v 1.125 2003/03/05 20:42:28 mike Exp $".
*/