OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../commonc++/commoncpp2-1.8.1-statfix.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -Nur commoncpp2-1.8.1.orig/src/applog.cpp commoncpp2-1.8.1/src/applog.cpp
  17. --- commoncpp2-1.8.1.orig/src/applog.cpp 2010-10-31 17:11:55.000000000 -0600
  18. +++ commoncpp2-1.8.1/src/applog.cpp 2012-01-22 19:23:13.639292789 -0700
  19. @@ -45,6 +45,7 @@
  20. #include <cstdlib>
  21. #include <stdarg.h>
  22. #include <errno.h>
  23. +#include <sys/stat.h>
  24. // TODO sc: test if has to move up now that it is into commoncpp
  25. // NOTE: the order of inclusion is important do not move following include line
  26. @@ -297,7 +298,7 @@
  27. else
  28. {
  29. // create pipe
  30. - int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE);
  31. + int err = mkfifo(_nomeFile.c_str(), S_IRUSR | S_IWUSR);
  32. if (err == 0 || errno == EEXIST)
  33. {
  34. // and open it
  35. @@ -342,7 +343,7 @@
  36. else
  37. {
  38. // create pipe
  39. - int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE);
  40. + int err = mkfifo(_nomeFile.c_str(), S_IRUSR | S_IWUSR);
  41. if (err == 0 || errno == EEXIST)
  42. {
  43. // and open it
  44. @@ -456,7 +457,7 @@
  45. else
  46. {
  47. // create pipe
  48. - int err = mkfifo(d->_nomeFile.c_str(), S_IREAD | S_IWRITE);
  49. + int err = mkfifo(d->_nomeFile.c_str(), S_IRUSR | S_IWUSR);
  50. if (err == 0 || errno == EEXIST)
  51. {
  52. // and open it
  53. @@ -562,7 +563,7 @@
  54. else
  55. {
  56. // create pipe
  57. - int err = mkfifo(d->_nomeFile.c_str(), S_IREAD | S_IWRITE);
  58. + int err = mkfifo(d->_nomeFile.c_str(), S_IRUSR | S_IWUSR);
  59. if (err == 0 || errno == EEXIST)
  60. {
  61. // and open it