mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
c9b41dd6a7
(1) PKGNAME satisfies handbook rule. (2) @dirrm lib/radius fails when lib/radius/acct exists. Submitted by: Stefan Esser <se@mi.uni-koeln.de> ----- diff -urN -x CVS merit/Makefile radius/Makefile --- merit/Makefile Fri Sep 18 02:00:05 1998 +++ radius/Makefile Wed Oct 7 23:54:43 1998 @@ -7,7 +7,7 @@ # DISTNAME= radius.3.6B.basic -PKGNAME= radius-3.6B.basic +PKGNAME= radius-basic-3.6B CATEGORIES= net MASTER_SITES= ftp://ftp.merit.edu/radius/releases/ diff -urN -x CVS merit/pkg/PLIST radius/pkg/PLIST --- merit/pkg/PLIST Fri Sep 18 01:58:28 1998 +++ radius/pkg/PLIST Wed Oct 7 23:51:47 1998 @@ -12,4 +12,5 @@ lib/radius/db/engine.config.sample lib/radius/db/vendors.sample @dirrm lib/radius/db +@dirrm lib/radius/acct @dirrm lib/radius -----
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
--- src/radiusd.c~ Mon Jul 27 22:52:37 1998
|
|
+++ src/radiusd.c Thu Sep 17 18:31:50 1998
|
|
@@ -793,6 +793,19 @@
|
|
sigaction (SIGIOT, &action, NULL); /* Perhaps also known as SIGABRT ! */
|
|
sigaction (SIGFPE, &action, NULL);
|
|
|
|
+ /* the max number of open files should never be used as an argument
|
|
+ * for select(). On systems that support more than 256 open files
|
|
+ * select() is not able to handle that many fd's.
|
|
+ * In this case the max. number of fd's for select should not be
|
|
+ * set to the maximum number of descriptors.
|
|
+ * Since I'm too lazy to correct the code I set dtablesize to
|
|
+ * FD_SETSIZE. This is the only portable way to use select() on
|
|
+ * all descriptors. See also "Advanced Programming in the Unix
|
|
+ * Environment" (from W. Richard Stevens) and the BSD 4.4 manpage for
|
|
+ * select(2).
|
|
+ */
|
|
+ dtablesize = FD_SETSIZE;
|
|
+#ifdef BOGUS_CODE
|
|
#ifdef _SC_OPEN_MAX
|
|
if ((dtablesize = sysconf (_SC_OPEN_MAX)) == -1)
|
|
{
|
|
@@ -802,6 +815,7 @@
|
|
#else /* Assume BSD */
|
|
dtablesize = getdtablesize ();
|
|
#endif /* _SC_OPEN_MAX */
|
|
+#endif /* BOGUS_CODE */
|
|
|
|
for (j = dtablesize; j >= 3; j--)
|
|
{
|