1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/net/generic-nqs/files/patch-ab
Chris Piazza cad6c0c117 Generic-NQS, a freely available Network Queuing System that provides
configurable limits on jobs on a per queue basis as well as for the
total queue system.
It is based on the de facto NQS standards and is interoperable with
commercial NQS products.

PR:		6699
Submitted by:	Tony Maher <tonym@angis.org.au>
1999-06-28 07:07:31 +00:00

22 lines
689 B
Plaintext

--- Source-Tree/nqsdaemon/all-systems/nqs_reqser.c.orig Wed Sep 11 05:32:26 1996
+++ Source-Tree/nqsdaemon/all-systems/nqs_reqser.c Sat May 2 11:09:26 1998
@@ -1746,7 +1746,7 @@
char *cp;
environment_file = fopen("/etc/environment", "r");
- if ( environment_file != (FILE *) 0 ) {
+ if ( environment_file > (FILE *) 0 ) {
while ( (fgets (env_line, sizeof(env_line), environment_file )
!= (char *) 0) ) {
if (env_line[0] == '#') continue;
@@ -1758,8 +1758,8 @@
return (the_path);
}
}
+ fclose ( environment_file );
}
- fclose ( environment_file );
/*
* The file was not found, or the path was not in it.
*/