Sven Dehmlow | 2 Apr 2004 20:00
Picon
Picon

rnd.c patch

Hi,
This patch makes the informations in /usr/src/sys/dev/rnd.c more OpenBSD
specific. I haven't tested it much, but following the instructions
didn't crash my machine... ;-)

Sven

-- 
You are not expected to understand this.
        - Dennis Ritchie (Unix 6th Edition)
-- 
--- /usr/src/sys/dev/rnd.c	Fri Apr  2 19:08:43 2004
+++ rnd.c	Fri Apr  2 19:39:09 2004
 <at>  <at>  -192,28 +192,29  <at>  <at> 
  *	echo "Saving random seed..."
  *	dd if=/dev/urandom of=/etc/random-seed count=1
  *
- * For example, on many Linux systems, the appropriate scripts are
- * usually /etc/rc.d/rc.local and /etc/rc.d/rc.0, respectively.
+ * For example, on OpenBSD systems, the appropriate scripts are
+ * usually /etc/rc.local and /etc/rc.shutdown, respectively.
  *
  * Effectively, these commands cause the contents of the entropy pool
  * to be saved at shutdown time and reloaded into the entropy pool at
  * start-up.  (The 'dd' in the addition to the bootup script is to
  * make sure that /etc/random-seed is different for every start-up,
- * even if the system crashes without executing rc.0.)  Even with
+ * even if the system crashes without executing rc.shutdown) Even with
  * complete knowledge of the start-up activities, predicting the state
  * of the entropy pool requires knowledge of the previous history of
(Continue reading)

rick | 4 Apr 2004 04:14
Picon

nfsv4 server ported to OpenBSD3.4

I now have my nfsv4 server running on OpenBSD3.4. (I dropped back from
OpenBSD-current because the "bits de jur" that I downloaded didn't want
to build.)

I'm guessing it'll drop into -current pretty easily, since there wasn't
a lot to porting it from 2.6->3.4.

If you want to grab it, just go to pub/nfsv4 anonymous ftp at
snowhite.cis.uoguelph.ca (131.104.48.1).

Let me know if you get it going, or if you have questions, rick

Md Faiyaz | 5 Apr 2004 11:37
Picon
Favicon

vga opti 82c264

hello

pls send me the following vga driver for win/95.

VGA CARD
OPTI 82C264
TAIWAN 955105RE

Hihgly appreciate your support.

file://Faiyaz
Yahoo! Small Business $15K Web Design Giveaway - Enter today

Rod.. Whitworth | 5 Apr 2004 12:45

Re: vga opti 82c264

On Mon, 5 Apr 2004 02:37:47 -0700 (PDT), Md Faiyaz wrote:

>hello
> 
>pls send me the following vga driver for win/95.
> 
>VGA CARD
>OPTI 82C264
>TAIWAN 955105RE
> 
>Hihgly appreciate your support.

email: support <at> microsoft.com

From the land "down under": Australia.
Do we look <umop apisdn> from up over?

Do NOT CC me - I am subscribed to the list.
Replies to the sender address will fail except from the list-server.

ilya voronin | 5 Apr 2004 17:25
Picon

ftpd.c patch

Hi!

the following patch adds '-f' option to ftpd
that disables DELE and RMD commands for anonymous users.

--- /usr/src/libexec/ftpd/ftpd.c.orig	Tue Jul 29 22:39:22 2003
+++ /usr/src/libexec/ftpd/ftpd.c	Mon Apr  5 19:07:45 2004
 <at>  <at>  -148,6 +148,8  <at>  <at> 
 int	logging;
 int	anon_ok = 1;
 int	anon_only = 0;
+int	anon_dele = 1;
+int	anon_rmd = 1;
 int	multihome = 0;
 int	guest;
 int	stats;
 <at>  <at>  -266,7 +268,7  <at>  <at> 
 	return (guest ? path+1 : path);
 }

-char *argstr = "AdDhnlMSt:T:u:UvP46";
+char *argstr = "AdDfhnlMSt:T:u:UvP46";

 static void
 usage(void)
 <at>  <at>  -298,6 +300,10  <at>  <at> 
 			break;

 		case 'd':
+		case 'f':
(Continue reading)

Ian F. Darwin | 5 Apr 2004 17:46
Picon
Favicon
Gravatar

Re: ftpd.c patch

This part doesn't look right:

>  <at>  <at>  -298,6 +300,10  <at>  <at> 
>  			break;
>
>  		case 'd':
> +		case 'f':
> +			anon_dele = 0;
> +			anon_rmd = 0;
> +			break;
>  		case 'v':		/* deprecated */
>  			debug = 1;
>  			break;

I suspect you wanted 'd' and 'v' to remain synonymous:

> +		case 'f':
> +			anon_dele = 0;
> +			anon_rmd = 0;
> +			break;
>  		case 'd':
>  		case 'v':		/* deprecated */
>  			debug = 1;
>  			break;

ilya voronin | 5 Apr 2004 18:03
Picon

Re: ftpd.c patch

On Mon, Apr 05, 2004 at 11:46:20AM -0400, Ian F. Darwin wrote:
> I suspect you wanted 'd' and 'v' to remain synonymous:
yes of course. sorry.

--- /usr/src/libexec/ftpd/ftpd.c.orig	Tue Jul 29 22:39:22 2003
+++ /usr/src/libexec/ftpd/ftpd.c	Mon Apr  5 19:57:52 2004
 <at>  <at>  -148,6 +148,8  <at>  <at> 
 int	logging;
 int	anon_ok = 1;
 int	anon_only = 0;
+int	anon_dele = 1;
+int	anon_rmd = 1;
 int	multihome = 0;
 int	guest;
 int	stats;
 <at>  <at>  -266,7 +268,7  <at>  <at> 
 	return (guest ? path+1 : path);
 }

-char *argstr = "AdDhnlMSt:T:u:UvP46";
+char *argstr = "AdDfhnlMSt:T:u:UvP46";

 static void
 usage(void)
 <at>  <at>  -297,6 +299,10  <at>  <at> 
 			anon_only = 1;
 			break;

+		case 'f':
+			anon_dele = 0;
(Continue reading)

Jay W. Reffner | 5 Apr 2004 18:09

Kernel Parameter HELP!

I am in desperate need to modifying the following kernel parameters:
maxfiles=11000
maxproc=6000
msgmnb=16384
msgmni=40
msgseg=2048
msgssz=64
msgtql=1024

I am unclear on how to do this.  I have looked at the Kernel FAQ on the 
OpenBSD site and tried to do it myself but it didn't work.  Does anyone 
have any idea how to do this?  I'm on OpenBSD 3.4.  Thanks a bunch for 
your help!

Sincerely,
Jay W. Reffner
Attachment (reffner.vcf): text/x-vcard, 448 bytes
Attachment (smime.p7s): application/x-pkcs7-signature, 3423 bytes
Sven | 5 Apr 2004 18:25
Picon
Favicon

Re: Kernel Parameter HELP!

On Mon, Apr 05, 2004 at 12:09:03PM -0400, Jay W. Reffner wrote:
> I am in desperate need to modifying the following kernel parameters:
> maxfiles=11000
> maxproc=6000
> msgmnb=16384
> msgmni=40
> msgseg=2048
> msgssz=64
> msgtql=1024
> 
> I am unclear on how to do this.  I have looked at the Kernel FAQ on the 
> OpenBSD site and tried to do it myself but it didn't work.  Does anyone 
> have any idea how to do this?  I'm on OpenBSD 3.4.  Thanks a bunch for 
> your help!
> 
> Sincerely,
> Jay W. Reffner
 ---end quoted text--- 

man 8 sysctl

--

-- 
I think animal testing is a terrible idea.
They get all nervous and give silly answers.

-- Stephen Fry in A Bit Of Fry and Laurie

ilya voronin | 5 Apr 2004 18:33
Picon

Re: ftpd.c patch (man diff)

--- /usr/src/libexec/ftpd/ftpd.8.orig	Fri Sep  5 01:17:47 2003
+++ /usr/src/libexec/ftpd/ftpd.8	Mon Apr  5 20:26:47 2004
 <at>  <at>  -74,6 +74,8  <at>  <at> 
 from
 .Xr inetd 8
 and is thus useful on busy servers to reduce load.
+.It Fl f
+Disables the DELE and RMD commands for anonymous users.
 .It Fl l
 Each successful and failed
 .Xr ftp 1

--

-- 
ilya voronin <ivoronin <at> ivoronin.pp.ru>


Gmane