[PATCH 1/2] imported ppp-2.4.4-rh-closelog.patch from RH#222295

Michael Shigorin mike на altlinux.org
Вс Ноя 22 17:18:27 UTC 2009


---
 ppp-2.4.4-rh-closelog.patch |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 ppp-2.4.4-rh-closelog.patch

diff --git a/ppp-2.4.4-rh-closelog.patch b/ppp-2.4.4-rh-closelog.patch
new file mode 100644
index 0000000..ea31432
--- /dev/null
+++ b/ppp-2.4.4-rh-closelog.patch
@@ -0,0 +1,28 @@
+--- ppp-2.4.4/pppd/main.c       2006-06-04 06:52:50.000000000 +0300
++++ ../../ppp/pppd/main.c       2006-12-19 12:22:11.000000000 +0200
+@@ -66,7 +66,7 @@
+  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+  */
+
+-#define RCSID  "$Id: main.c,v 1.153 2006/06/04 03:52:50 paulus Exp $"
++#define RCSID  "$Id: main.c,v 1.155 2006/12/19 10:22:11 paulus Exp $"
+
+#include <stdio.h>
+#include <ctype.h>
+@@ -1567,6 +1567,8 @@
+        if (errfd == 0 || errfd == 1)
+                errfd = dup(errfd);
+
++       closelog();
++
+        /* dup the in, out, err fds to 0, 1, 2 */
+        if (infd != 0)
+                dup2(infd, 0);
+@@ -1575,7 +1577,6 @@
+        if (errfd != 2)
+                dup2(errfd, 2);
+
+-       closelog();
+        if (log_to_fd > 2)
+                close(log_to_fd);
+        if (the_channel->close)
-- 
1.6.5.2


--96YOpH+ONegL0A3E
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="0002-2.4.4-alt13.patch"



Подробная информация о списке рассылки Sisyphus