]> git.pld-linux.org Git - packages/crossfire.git/blame - crossfire-daemon.patch
- x32 rebuild
[packages/crossfire.git] / crossfire-daemon.patch
CommitLineData
081de093
AF
1--- crossfire-1.9.1/server/daemon.c.wig2 2006-05-13 08:32:14.000000000 +0200
2+++ crossfire-1.9.1/server/daemon.c 2007-02-04 14:22:56.000000000 +0100
3@@ -103,9 +103,9 @@
4 /*
5 * Set up the standard file descriptors.
6 */
7- (void) open ("/", O_RDONLY); /* root inode already in core */
8- (void) dup2 (0, 1);
9- (void) dup2 (0, 2);
10+ (void) open ("/dev/null", O_RDONLY); /* root inode already in core */
11+ (void) dup2 (fileno(logfile), 1);
12+ (void) dup2 (fileno(logfile), 2);
13
14 if ((i = open ("/dev/tty", O_RDWR)) >= 0) { /* did open succeed? */
15 #if (defined(SYSV) || defined(hpux)) && defined(TIOCTTY)
This page took 0.066831 seconds and 4 git commands to generate.