1 --- osiris-4.1.8-orig/src/osirisd/osirisd.c 2005-04-14 01:00:55.000000000 +0200
2 +++ osiris-4.1.8-1/src/osirisd/osirisd.c 2005-04-22 23:11:32.000000000 +0200
6 rootpriv_setup_pidfile();
12 --- osiris-4.1.8-orig/src/osirisd/rootpriv.c 2005-04-14 00:55:59.000000000 +0200
13 +++ osiris-4.1.8-1/src/osirisd/rootpriv.c 2005-04-22 23:25:10.000000000 +0200
19 +extern char pid_file[MAX_PATH_LENGTH];
24 /* this is defined in regex, and sometimes conflicts with stuff */
26 extern pid_t child_pid;
27 extern int rootpriv_pipe[2]; /* socketpair used for rootpriv comm. */
30 -extern char pid_file[MAX_PATH_LENGTH];
33 #define INCOMING_ROOT_REQUEST() ( FD_ISSET( rootpriv_pipe[1], &root_read_set ) )
42 - FILE *pidfile = fopen( pid_file, "wb" );
44 - if( pidfile != NULL )
46 - fprintf( pidfile, "%ld\n", (long)getpid() );
56 #endif /* USE_PRIVSEP */
60 + FILE *pidfile = fopen( pid_file, "wb" );
62 + if( pidfile != NULL )
64 + fprintf( pidfile, "%ld\n", (long)getpid() );