cups-run.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. diff -Nuar cups-1.6.1.orig/config.h.in cups-1.6.1/config.h.in
  2. --- cups-1.6.1.orig/config.h.in 2012-07-16 21:21:43.000000000 +0300
  3. +++ cups-1.6.1/config.h.in 2013-03-13 18:46:13.805434622 +0200
  4. @@ -127,7 +127,7 @@
  5. #define CUPS_SBINDIR "/usr/sbin"
  6. #define CUPS_SERVERBIN "/usr/lib/cups"
  7. #define CUPS_SERVERROOT "/etc/cups"
  8. -#define CUPS_STATEDIR "/var/run/cups"
  9. +#define CUPS_STATEDIR "/run/cups"
  10. /*
  11. diff -Nuar cups-1.6.1.orig/doc/help/security.html cups-1.6.1/doc/help/security.html
  12. --- cups-1.6.1.orig/doc/help/security.html 2011-04-29 00:20:12.000000000 +0300
  13. +++ cups-1.6.1/doc/help/security.html 2013-03-13 18:45:47.222433880 +0200
  14. @@ -53,7 +53,7 @@
  15. <LI>Local certificate authentication passes 128-bit
  16. "certificates" that identify an authenticated user.
  17. Certificates are created on-the-fly from random data and
  18. - stored in files under <VAR>/var/run/cups/certs</VAR>.
  19. + stored in files under <VAR>/run/cups/certs</VAR>.
  20. They have restricted read permissions: root +
  21. system-group(s) for the root certificate, and lp + lp
  22. for CGI certificates.
  23. diff -Nuar cups-1.6.1.orig/scheduler/org.cups.cupsd.plist cups-1.6.1/scheduler/org.cups.cupsd.plist
  24. --- cups-1.6.1.orig/scheduler/org.cups.cupsd.plist 2011-04-20 21:15:44.000000000 +0300
  25. +++ cups-1.6.1/scheduler/org.cups.cupsd.plist 2013-03-13 18:44:26.286431623 +0200
  26. @@ -54,7 +54,7 @@
  27. <key>SockPathMode</key>
  28. <integer>49663</integer>
  29. <key>SockPathName</key>
  30. - <string>/private/var/run/cupsd</string>
  31. + <string>/run/cupsd</string>
  32. </dict>
  33. </array>
  34. </dict>
  35. diff -Nuar cups-1.6.1.orig/xcode/config.h cups-1.6.1/xcode/config.h
  36. --- cups-1.6.1.orig/xcode/config.h 2012-07-16 21:21:43.000000000 +0300
  37. +++ cups-1.6.1/xcode/config.h 2013-03-13 18:43:13.618429596 +0200
  38. @@ -100,7 +100,7 @@
  39. * Do we have domain socket support, and if so what is the default one?
  40. */
  41. -#define CUPS_DEFAULT_DOMAINSOCKET "/private/var/run/cupsd"
  42. +#define CUPS_DEFAULT_DOMAINSOCKET "/run/cupsd"
  43. /*