From ccfd8099e717a58773bd0978689ff3f21fdd4ee1 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 11 May 2012 14:43:43 +0200 Subject: [PATCH] commonc++: fixed to use correct permission mode flags http://pkgs.fedoraproject.org/gitweb/?p=commoncpp2.git;a=blob_plain;f=commoncpp2-1.8.1-statfix.patch;h=5dfc36ecb9b76fe11d567ab86115a3802e9d3997;hb=1d85fceae1af394623584e97f4e2f0a30ee342b3 --- .../commonc++/commoncpp2-1.8.1-statfix.patch | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 develop/commonc++/commoncpp2-1.8.1-statfix.patch diff --git a/develop/commonc++/commoncpp2-1.8.1-statfix.patch b/develop/commonc++/commoncpp2-1.8.1-statfix.patch new file mode 100644 index 000000000..455cf96a0 --- /dev/null +++ b/develop/commonc++/commoncpp2-1.8.1-statfix.patch @@ -0,0 +1,63 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../commonc++/commoncpp2-1.8.1-statfix.patch +# Copyright (C) 2012 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +diff -Nur commoncpp2-1.8.1.orig/src/applog.cpp commoncpp2-1.8.1/src/applog.cpp +--- commoncpp2-1.8.1.orig/src/applog.cpp 2010-10-31 17:11:55.000000000 -0600 ++++ commoncpp2-1.8.1/src/applog.cpp 2012-01-22 19:23:13.639292789 -0700 +@@ -45,6 +45,7 @@ + #include + #include + #include ++#include + + // TODO sc: test if has to move up now that it is into commoncpp + // NOTE: the order of inclusion is important do not move following include line +@@ -297,7 +298,7 @@ + else + { + // create pipe +- int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE); ++ int err = mkfifo(_nomeFile.c_str(), S_IRUSR | S_IWUSR); + if (err == 0 || errno == EEXIST) + { + // and open it +@@ -342,7 +343,7 @@ + else + { + // create pipe +- int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE); ++ int err = mkfifo(_nomeFile.c_str(), S_IRUSR | S_IWUSR); + if (err == 0 || errno == EEXIST) + { + // and open it +@@ -456,7 +457,7 @@ + else + { + // create pipe +- int err = mkfifo(d->_nomeFile.c_str(), S_IREAD | S_IWRITE); ++ int err = mkfifo(d->_nomeFile.c_str(), S_IRUSR | S_IWUSR); + if (err == 0 || errno == EEXIST) + { + // and open it +@@ -562,7 +563,7 @@ + else + { + // create pipe +- int err = mkfifo(d->_nomeFile.c_str(), S_IREAD | S_IWRITE); ++ int err = mkfifo(d->_nomeFile.c_str(), S_IRUSR | S_IWUSR); + if (err == 0 || errno == EEXIST) + { + // and open it