Author: wiget                        Date: Sun Feb  4 13:33:44 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
using "/" as STDIN, STDOUT and STDERR isn't a good idea

---- Files affected:
SOURCES:
   crossfire-daemon.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/crossfire-daemon.patch
diff -u /dev/null SOURCES/crossfire-daemon.patch:1.1
--- /dev/null   Sun Feb  4 14:33:44 2007
+++ SOURCES/crossfire-daemon.patch      Sun Feb  4 14:33:39 2007
@@ -0,0 +1,15 @@
+--- crossfire-1.9.1/server/daemon.c.wig2       2006-05-13 08:32:14.000000000 
+0200
++++ crossfire-1.9.1/server/daemon.c    2007-02-04 14:22:56.000000000 +0100
+@@ -103,9 +103,9 @@
+     /*
+      * Set up the standard file descriptors.
+      */
+-    (void) open ("/", O_RDONLY);      /* root inode already in core */
+-    (void) dup2 (0, 1);
+-    (void) dup2 (0, 2);
++    (void) open ("/dev/null", O_RDONLY);      /* root inode already in core */
++    (void) dup2 (fileno(logfile), 1);
++    (void) dup2 (fileno(logfile), 2);
+ 
+     if ((i = open ("/dev/tty", O_RDWR)) >= 0) {       /* did open succeed? */
+ #if (defined(SYSV) || defined(hpux)) && defined(TIOCTTY)
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to