From: mike Date: Wed, 5 Mar 2003 20:42:28 +0000 (+0000) Subject: Apple changes. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92345ae50f60b2754203b51addff052ad0300bdc;p=thirdparty%2Fcups.git Apple changes. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@3427 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/scheduler/Makefile b/scheduler/Makefile index 80d30a1c67..c812384d92 100644 --- a/scheduler/Makefile +++ b/scheduler/Makefile @@ -1,5 +1,5 @@ # -# "$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). # @@ -69,8 +69,8 @@ install: all $(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 # @@ -138,5 +138,5 @@ include Dependencies # -# 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 $". # diff --git a/scheduler/conf.c b/scheduler/conf.c index b1acedebf9..bae73a1b16 100644 --- a/scheduler/conf.c +++ b/scheduler/conf.c @@ -1,5 +1,5 @@ /* - * "$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). * @@ -468,10 +468,10 @@ ReadConfiguration(void) 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); @@ -493,7 +493,7 @@ ReadConfiguration(void) 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); @@ -506,11 +506,19 @@ ReadConfiguration(void) 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); @@ -2049,5 +2057,5 @@ CDSAGetServerCerts(void) /* - * 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 $". */