Re: Cron pickle

2001-09-16 Thread Ben Smithurst
Alfred Perlstein wrote: > * Ben Smithurst <[EMAIL PROTECTED]> [010916 19:49] wrote: >> Tim Allshorn wrote: >> >>> I know the cron command has to be something like : 59 23 ? ? * , with >>> maybe some condition on the end. >> >> I th

Re: Cron pickle

2001-09-16 Thread Ben Smithurst
time the day of the month is 1, if so, run the program. -- Ben Smithurst / [EMAIL PROTECTED] FreeBSD: The Power To Serve http://www.FreeBSD.org/ PGP signature

Re: Could not bind

2001-09-15 Thread Ben Smithurst
R, &foo, sizeof foo); between the socket() and listen() calls. Check setsockopt(2) and Stevens for more information (and to make sure I got the arguments and stuff right!) -- Ben Smithurst / [EMAIL PROTECTED] FreeBSD: The Power To Serve

Re: Some problems with CVSup

2001-09-10 Thread Ben Smithurst
Dmitry Shubin wrote: > And after rebooting I saw, that system became not STABLE, but > 4.4-RC!!! http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RELEASE-CANDIDATE -- Ben Smithurst / [EMAIL PROTECTED] FreeBSD: The Power To

Re: ssh password cracker - now this *is* cool!

2001-08-25 Thread Ben Smithurst
e), not the password you actually use to log in... -- Ben Smithurst / [EMAIL PROTECTED] FreeBSD: The Power To Serve http://www.FreeBSD.org/ PGP signature

Re: Proposed Utility - detach(1)

2001-08-24 Thread Ben Smithurst
is quite different to detaching it from the terminal. Or did I miss your point? -- Ben Smithurst / [EMAIL PROTECTED] FreeBSD: The Power To Serve http://www.FreeBSD.org/ PGP signature

Re: System unable to resolve hostnames

2001-07-17 Thread Ben Smithurst
#x27;bind' listed in /etc/host.conf. I'm not sure -hackers is the most appropriate list either. -- Ben Smithurst / [EMAIL PROTECTED] PGP signature

Re: deny this

2001-07-09 Thread Ben Smithurst
commands. 3. Why would you want to reject perfectly legitimate mail by making it deny such commands? -- Ben Smithurst / [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: deliberate kernel panic?

2001-07-08 Thread Ben Smithurst
lt-Esc, type "panic". > Slightly related question: can you set a system to reboot > automatically at a panic, save a core, and continue? It does that by default AFAIK. The only case it doesn't if if you have DDB set without DDB_UNATTENDED. -- Ben Smithurst / [EMAIL PROTECT

ugen(4) manual page

2001-01-25 Thread Ben Smithurst
SD.org/cgi/man.cgi?query=ugen&apropos=0&sektion=0&manpath=NetBSD+1.5&format=html -- Ben Smithurst / [EMAIL PROTECTED] / [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Patch to fix "make buildkernel requires full obj directory" mistake

2001-01-24 Thread Ben Smithurst
think I'll just add a which says "in -current use KERNCONF instead of KERNEL". When -stable uses KERNCONF too this ugliness can go. In fact, I just have committed this. -- Ben Smithurst / [EMAIL PROTECTED] / [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: pppd & mkdir diff

2001-01-13 Thread Ben Smithurst
path[ strlen(path)-1 ] = 0; No it doesn't. "No spaces after `(' or `[' or preceding `]' or `)' characters." "Unary operators don't require spaces, binary operators do." while (path[strlen(path) - 1] == '/')

Re: looking for kernel hacking info

2000-11-15 Thread Ben Smithurst
Paonia Ezrine wrote: >> The system calls are described in section 2 of the manual. > > thanks. do you mean handbook? No, he means the manual. "man 2 intro" to get an introduction, "man 2 read" for a particular system call, etc. -- Ben Smithurst / [EMAIL PRO

Re: passwd.1

2000-09-17 Thread Ben Smithurst
I'll look at it. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Fdescfs updates--coming to a devfs near you!

2000-09-14 Thread Ben Smithurst
n't help when you want to read more than one file, one of which is stdin. > If anything I would propose we ditch it... And break loads of scripts at the same time? -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Preventing zombies to occure

2000-08-25 Thread Ben Smithurst
do is int e = errno; while (waitpid(-1, NULL, WNOHANG) > 0) ; errno = e; But I think I'm drifting from the original point. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Preventing zombies to occure

2000-08-25 Thread Ben Smithurst
(-1, NULL, 0) || errno == EINTR) ; errno = e; } otherwise you could get bogus errors reported, I think. if ((fp = fopen(foo, "r")) == NULL) /* SIGCHLD arrives here */ warn("can't open foo"); -- Ben Smithurst / [EMAIL PROTECTED]

Re: make release: how I do make it into a bootable cd?

2000-08-08 Thread Ben Smithurst
ed FreeBSD bootable > distribution CDRom? I mean, where do I get the el-torrito boot > image? How do I make it use it and then run sysinstall seamlessly? Use floppies/boot.flp as the boot image, see "man mkisofs" for how to set the boot image. -- Ben Smithurst / [EMAIL P

Re: CRACK - Dreamweaver

2000-07-28 Thread Ben Smithurst
Richard Stoodley wrote: > Can you tell me where I can get Crack Try <ftp://ftp.win.tue.nl/pub/security/crack5.0.tar.gz> -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D FreeBSD Documentation Project / To Unsubscribe: send mail to [EMAIL PROTECTED] with &qu

Re: PR 18593: *is* VOP_LOOKUP a 'VFS entry point' ?

2000-07-16 Thread Ben Smithurst
imes. *rofl* I'll take that as a "don't worry, you don't need the pointy hat yet" then. :-) -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D FreeBSD Documentation Project / PGP signature

PR 18593: *is* VOP_LOOKUP a 'VFS entry point' ?

2000-07-15 Thread Ben Smithurst
consistent with the rest. Can someone confirm one way or the other, and pass me the pointy hat for the first time if needed? Hmm, pointy hat within a week, not good. :-( thanks. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D FreeBSD Documentation Project / PGP signature

Re: config and config -r

2000-07-15 Thread Ben Smithurst
the current behaviour of _not_ removing the directory. This was changed 2 years ago... | revision 1.20 | date: 1998/02/18 04:15:04; author: eivind; state: Exp; lines: +9 -13 | Make '-n' the default, and introduce a new flag '-r' to get old | behaviour. Also indicate which

Re: /etc/security -> /etc/periodic/security ?

2000-07-14 Thread Ben Smithurst
James Howard wrote: > Now please place answers to the following questions in FAQ? What are > fairings? Why does it matter what color the bikeshed is? What does > non-reflexive? (Can you tell I read the follow question?:) Perhaps if I knew the answers myself, I would. :-) -- Ben

Re: /etc/security -> /etc/periodic/security ?

2000-07-13 Thread Ben Smithurst
mean a repo-copy and this probably isn't important enough to justify that, so let's leave it be. People are probably used to running '/etc/security' standalone as well. >> Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D > > BTW, congrats on your commit bit ! Than

small update to handbook about debug kernels

2000-07-11 Thread Ben Smithurst
nels since FreeBSD 3.1-RELEASE. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D PGP signature

Re: /etc/security -> /etc/periodic/security ?

2000-07-04 Thread Ben Smithurst
, and that security shouldn't be run separately unless you set daily_security_enable=NO or whatever the option is. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D PGP signature

Re: /etc/security -> /etc/periodic/security ?

2000-07-04 Thread Ben Smithurst
# 440.status-mailq > daily_status_mailq_enable="YES" # Check mail status > daily_status_mailq_shorten="NO" # Shorten output oh, right, ok. That should be simple enough. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D PGP signature

Re: /etc/security -> /etc/periodic/security ?

2000-07-03 Thread Ben Smithurst
James Howard wrote: > On Thu, 29 Jun 2000, Ben Smithurst wrote: > >> Try the attached. They haven't been thoroughly tested, but that's what >> -CURRENT is for, right? :-) I even remembered to update the manual page >> this time... > > This needs

Re: /etc/security -> /etc/periodic/security ?

2000-06-29 Thread Ben Smithurst
horoughly tested, but that's what -CURRENT is for, right? :-) I even remembered to update the manual page this time... -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D Index: ../man5/periodic.conf.5 === RCS file: /

Re: /etc/security -> /etc/periodic/security ?

2000-06-29 Thread Ben Smithurst
o separate files so I could probably do it myself if no-one else has planned it. Brian? As creator of periodic.conf, what do you think? -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D PGP signature

Re: sys/ufs/ufs/ufs_quota.c

2000-06-24 Thread Ben Smithurst
clemensF wrote: >> Marius Bendiksen: > >> Actually, our suser() implementation is pretty non-portable. > > i take what i get. when i can do "man [23] ", i approve of the > consequences. Too bad suser() is in section 9 then. :-) -- Ben Smithurst / [EMAIL

Re: buildworld summary

2000-06-22 Thread Ben Smithurst
;s what you're after. And Brian, are you sure you're not mixing it up with phk's proposals to post a list of world breakage to -current or something? Or am I just getting terribly confused? (I'll shut up now.) -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D PGP signature

Re: cool

2000-06-16 Thread Ben Smithurst
Richard Wackerbarth wrote: > I looks to me like Julian's machine has the configuration problem. > The dhcp client cannot get enough bpf's. So why did tcpdump work? Both dhclient and tcpdump need one bpf, no? I initially thought the same as you but then asked myself that qu

Re: readers missing EOF on FIFOs.

2000-06-05 Thread Ben Smithurst
yway, it's hardly an important application, the FIFO in question is "~/.signature". Can you guess what it does yet? :-) Yes I know there's probably something in the ports to do what I want, but I'm one of these perverted people who actually likes programming simple things

readers missing EOF on FIFOs.

2000-06-04 Thread Ben Smithurst
y happen, and if I run 'cat' again straight away it normally happens again. If I leave it for a while it generally takes a few attempts to make it happen again. If I add a sleep(2) after the fclose it seems to work fine, but this seems like an ugly kludge. FWIW I get similar resu

Re: icmp-response error

2000-05-11 Thread Ben Smithurst
tat is your friend, if you're doing what I think you're doing. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Adding -maxdepth and -mindepth options to find(1)

2000-04-29 Thread Ben Smithurst
operators separate, but I don't really see a way around this. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D Index: extern.h === RCS file: /usr/cvs/src/usr.bin/find/extern.h,v retrieving revision 1.9 diff -u -r1.9 extern.h --

Re: Adding -maxdepth and -mindepth options to find(1)

2000-04-29 Thread Ben Smithurst
Kris Kennaway wrote: > On Sat, 29 Apr 2000, Ben Smithurst wrote: > >> any other people who might want it? I've attached a patch to implement >> this, if I don't get any feedback I'll send-pr it instead, I thought I >> might get a few opinions here first

Adding -maxdepth and -mindepth options to find(1)

2000-04-28 Thread Ben Smithurst
e who might want it? I've attached a patch to implement this, if I don't get any feedback I'll send-pr it instead, I thought I might get a few opinions here first. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F

Re: commit MAKE_SHELL?

2000-04-24 Thread Ben Smithurst
Brian Fundakowski Feldman wrote: > On Mon, 24 Apr 2000, Ben Smithurst wrote: > >> why allow csh in the Makefile when the setting of DEFSHELL it results in >> will not compile? Have I missed something? > > It's there to allow you attempt to shoot yourself in the

Re: commit MAKE_SHELL?

2000-04-23 Thread Ben Smithurst
"DEFSHELL must be 1 or 2." > +#endif why allow csh in the Makefile when the setting of DEFSHELL it results in will not compile? Have I missed something? -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Onboard Intel NIC

2000-03-28 Thread Ben Smithurst
doesn't fix the driver because he's too busy doing things to earn his living? The word "hypocrite" springs to mind. You'll be glad to know you've inspired me to investigate Mutt's killfiling rules though. HAND. -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392

Re: freebsd-hackers-digest V4 #792

2000-03-25 Thread Ben Smithurst
TECTED] >> with "unsubscribe freebsd-hackers" in the body of the message >> To Unsubscribe: send mail to [EMAIL PROTECTED] >> with "unsubscribe freebsd-hackers" in the body of the message >> To Unsubscribe: send mail to [EMAIL PROTECTED] >>

Re: repeatable lockup (pipe related?)

2000-03-24 Thread Ben Smithurst
Matthew Dillon wrote: > I've committed a fix to this in -current, 4.x, and 3.x. Rev 1.61 > kern/sys_pipe.c (current), 1.60.2.1 in RELENG_4, something else in > RELENG_3. Sorry 2.2.x'rs, three is my limit :-) Thanks! I'll try it tonight. -- Ben Smithurst /

repeatable lockup (pipe related?)

2000-03-23 Thread Ben Smithurst
- R+ #C20:00.16 (troff) ... [unrelated things, I think] If anyone can shed any light on this, that'd be great. Thanks... -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Disposable PCs?

2000-02-10 Thread Ben Smithurst
ick http:// on the front if it's a Web address. That way, any half-decent software will allow the user to select the URL somehow (in Mutt, ^B does it). -- Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Please explain more clearly about converting malling system

2000-01-04 Thread Ben Smithurst
elli but maybe he > is out >of home so I have no response. I suspect in this case uin == uid == user id (maybe uin stands for user id number, I've seen it used before). I can't help you with the rest, since I don't know Linux. -- Ben Smithurst| PGP: 0x99

Re: Sorry, but another thread problem!

1999-12-29 Thread Ben Smithurst
t calls it, and thus only the last one ever >> returns. Replacing sleep() with nanosleep() or something else that >> is >> thread-safe should solve that problem. > > Stupid question time.. > > If that is so why doesn't sleep just use nanosleep? :) It does in F

Re: SIGFPE on arithmetic overflow

1999-12-24 Thread Ben Smithurst
Bosko Milekic wrote: > Could somebody try this piece of code on a -STABLE machine, just out of > curiosity...? I did, it gets SIGFPE too. (3.4-RC machine actually, but near enough :-) -- Ben Smithurst| PGP: 0x99392F7D [EMAIL PROTECTED] | key available from keyserve

Re: Resolv.conf question

1999-12-17 Thread Ben Smithurst
nted quite a while in the scripts, but couldn't > figure out what was doing this? Are you running ppp (user, not kernel pppd)? I think it will modify /etc/resolv.conf if you specify ``enable dns'', but I'm not too sure (check the source if you want). -- Ben Smithurst

Re: Error compiling..

1999-11-28 Thread Ben Smithurst
from the compatibility library, libcompat. So you need to add -lcompat to the command line, or take the manual page's advice and use getpwuid (with an argument of geteuid()) instead, and copy the pw_name member of the returned structure to myuser. -- Ben Smithurst| PGP: 0x99392F

Re: Making a port kit

1999-11-20 Thread Ben Smithurst
should be ${PREFIX}/man/man, I don't know why, but it should be from what I can tell. MAN8 should be in both Makefiles, with MANCOMPRESSED=yes set in the port Makefile as someone else suggested so the installation procedure doesn't try to compress them when they are already compressed

Re: Please review: rc file changes

1999-08-28 Thread Ben Smithurst
Doug wrote: > Okey dokey, I can take a hint. :) Can you take another one, regarding the unnecessary spaces after the values in your "case"s? i.e., that they should be taken out and shot? :-) -- Ben Smithurst| PGP: 0x99392F7D b...@scientia.demon.co.uk | key a

Re: Please review: rc file changes

1999-08-28 Thread Ben Smithurst
Doug wrote: > Okey dokey, I can take a hint. :) Can you take another one, regarding the unnecessary spaces after the values in your "case"s? i.e., that they should be taken out and shot? :-) -- Ben Smithurst| PGP: 0x99392F7D [EMAIL PROTECTED] | key a

Re: Help with exit status in shell script

1999-08-28 Thread Ben Smithurst
t 1>&2 3>&- 4>&-) 4>&1` exec 3>&- or something, should get it for you. I used `exit_code' rather than `status' because `$status' is read-only in zsh, but that shouldn't be a problem for plain old sh. You'd better add some comments explaining just what it does :-) -- Ben Smithurst| PGP: 0x99392F7D b...@scientia.demon.co.uk | key available from keyservers and | ben+...@scientia.demon.co.uk To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message

Re: Help with exit status in shell script

1999-08-28 Thread Ben Smithurst
t 1>&2 3>&- 4>&-) 4>&1` exec 3>&- or something, should get it for you. I used `exit_code' rather than `status' because `$status' is read-only in zsh, but that shouldn't be a problem for plain old sh. You'd better add some comments explaining just what it does :-) -- Ben Smithurst| PGP: 0x99392F7D [EMAIL PROTECTED] | key available from keyservers and | [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Request for review: vnconfig.c

1999-08-26 Thread Ben Smithurst
Mark J. Taylor wrote: > + dev = malloc(strlen(vnp->dev)+6); > + (void)sprintf(dev, "/dev/%s", vnp->dev); You should be checking that malloc() doesn't return NULL, before trying to write into the allocated space. -- Ben Smithurst

Re: Request for review: vnconfig.c

1999-08-26 Thread Ben Smithurst
Mark J. Taylor wrote: > + dev = malloc(strlen(vnp->dev)+6); > + (void)sprintf(dev, "/dev/%s", vnp->dev); You should be checking that malloc() doesn't return NULL, before trying to write into the allocated space. -- Ben Smithurst

Re: rndcontrol and SMP

1999-07-23 Thread Ben Smithurst
sth...@nethelp.no wrote: > ! warn(""); That should (probably) be `warn(NULL);', otherwise you'd get something like `rndcontrol: : error' rather than the (probably) desired `rndcontrol: error'. (Or so my simple test showed

Re: rndcontrol and SMP

1999-07-23 Thread Ben Smithurst
[EMAIL PROTECTED] wrote: > ! warn(""); That should (probably) be `warn(NULL);', otherwise you'd get something like `rndcontrol: : error' rather than the (probably) desired `rndcontrol: error'. (Or so my simple test showed