diff for usr.bin/mg/fileio.c

2018-04-10 Thread Han Boetes
I got a problem report from Mark Willson: "I recently installed mg (via the Debian package) under WSL on Windows 10. I found that the 'backup-to-home-directory' option didn't work. The cause of this appears to be that getlogin under WSL returns NULL, probably due to my use of wslt

Re: diff for usr.bin/mg/fileio.c

2018-04-12 Thread Han Boetes
Yes this also works for me. On Thu, Apr 12, 2018 at 4:52 PM, Florian Obser wrote: > On Tue, Apr 10, 2018 at 06:49:10PM +0200, Han Boetes wrote: > > I got a problem report from Mark Willson: > > > > "I recently installed mg (via the Debian package) under WSL on &

Re: [Patch] mg(1): Experimental UTF-8 support

2018-05-30 Thread Han Boetes
For anyone interested in contributing to this specific branch, Please have a look on github: https://github.com/hboetes/mg/tree/display-wide-characters On Wed, May 30, 2018 at 12:55 PM Leonid Bobrov wrote: > Hi Stefan! > > I'm sorry, fileio.c was out of sync that day, that's my bad, I forgot > t

Re: [PATCH] bioctl(8): fix dd invocation

2009-05-11 Thread Han Boetes
From: http://www.opengroup.org/onlinepubs/009695399/utilities/dd.html For the bs=, cbs=, ibs=, and obs= operands, the application shall supply an expression specifying a size in bytes. The expression, expr, can be: 1. A positive decimal number 2. A positive decimal number followed by k, spe

Re: tmux(1) bugfix

2009-09-05 Thread Han Boetes
Simon Nicolussi wrote: > one of the recent changes to tmux has the unintented side-effect > that all clients are being redrawn every second. This is visible > for people with slow terminals and furthermore makes copying > text with the mouse quite tricky. Here's a trivial fix: You will also notice

strtime.3 inconsistency

2009-09-08 Thread Han Boetes
Hi, In the rest of the document "maxsize" is used so I this one has to be changed to "maxsize" as well. Index: strftime.3 === RCS file: /cvs/src/lib/libc/time/strftime.3,v retrieving revision 1.22 diff -u -p -r1.22 strftime.3 --- str

kernel make file doesn't have dependency for bsd for the install target

2009-10-18 Thread Han Boetes
Hi, I just ran tried to install the kernel and ran: make depend make install Since I forgot running "make" and since there is no dependency for "bsd" the target removed my old kernel without installing the new one. How about this patch for the i386 target? cvs server: Diffing . Index: Make

Re: kernel make file doesn't have dependency for bsd for the install target

2009-10-21 Thread Han Boetes
Anathae E. Townsend wrote: > > Han Boetes wrote on Sunday, October 18, 2009 1:51 PM > I'm not a developer, and I don't speak for them, but I suspect > that install does not depend on bsd for specific reasons. > > First guess, as make takes a while to run, and make insta

Re: typo /cvs/src/sbin/ping/ping.c

2009-12-23 Thread Han Boetes
Good finds. To make them even better make sure your mta doesn't wrap the lines. ;-) Brad Tilley wrote: > # cvs diff -Nup ping.c > Index: ping.c > === > RCS file: /cvs/src/sbin/ping/ping.c,v > retrieving revision 1.85 > diff -N -u -p p

Re: enhancing i386 mbr.S

2010-02-20 Thread Han Boetes
Giuseppe Magnotta wrote: > I would like to submit a patch that will "enhance" the mbr of i386 > machines. Could you be so kind as to provide us with a unified patch? You can make one with: cvs diff -u Thanks! # Han

{Spam?} Re: [patch] less: filename globbing/expansion

2010-04-03 Thread Han Boetes
Nicholas Marriott wrote: > On Sat, Apr 03, 2010 at 03:37:46PM +1030, Matthew Haub wrote: > > We no longer track upstream less(1). The last sync was 7 > > years ago. > > Yes, but is that for a reason or just because nobody has > updated it? Because everybody uses w3m to replace less and lynx nowada

Re: fortune(6): chess help required

2010-09-04 Thread Han Boetes
Yes, I have something to say about it: A Dutch master Tim Krabe has published quite a bit about the shortest game: http://www.xs4all.nl/~timkr/records/recordstxt.htm#Shortest%20game So now the question is: do you still want to publish this "shortest game"? And if you do I would publish it with m

Re: fortune(6): chess help required

2010-09-04 Thread Han Boetes
Jason McIntyre wrote: > I would say maybe not to stick the url in. otherwise fine by me. I second that. # Han

keep timestamps for backup files in mg

2016-01-15 Thread Han Boetes
Hi there, Here is a patch I received from Harald Dunkel; it ensured the backup file has the same timestamp as the original file. This behaviour comforms with emacs' behaviour. I think this patch is also useful for upstream mg so I post it here. Index: fileio.c ===

small diff for acme-client that clarifies why the domain is not found.

2017-05-23 Thread Han Boetes
I just added a new domain in my nameserver and then ran acme-client % sudo acme-client -D niets.boetes.org acme-client: domain niets.boetes.org not found So I assumed the dns was not yet in DNS. I waited a bit, checked the propagation of my new entry in DNS, double checked everything. Debugged, e

mg: [macro.c:41]: (error) Memory pointed to by 'lp1' is freed twice.

2014-07-16 Thread Han Boetes
I recently used cppcheck on mg and I got this message: [macro.c:41]: (error) Memory pointed to by 'lp1' is freed twice. Looking at the code: /* free lines allocated for string arguments */ if (maclhead != NULL) { for (lp1 = maclhead->l_fp; lp1 != maclhead; lp1 = lp2) { lp

Re: mg: [macro.c:41]: (error) Memory pointed to by 'lp1' is freed twice.

2014-07-28 Thread Han Boetes
Hello Miod, Will certainly do, thanks for your input! Miod Vallat wrote: > > I recently used cppcheck on mg and I got this message: > > > > [macro.c:41]: (error) Memory pointed to by 'lp1' is freed twice. > > > > Looking at the code: > > > > /* free lines allocated for string arguments */ > >

Re: invalid link in ath(4) manpage

2011-07-30 Thread Han Boetes
Jason McIntyre wrote: > fixed, and an identical link in uath(4) removed too. Might I suggest pulling all sourcefiles through a linkchecker? # Han

Re: nc port scan, aka udp noise maker.

2011-09-10 Thread Han Boetes
You can use them but it is pointless. Brynet wrote: > I think this was a feature, right? :-) > > Index: netcat.c > === > RCS file: /cvs/src/usr.bin/nc/netcat.c,v > retrieving revision 1.101 > diff -u -p -u -r1.101 netcat.c > --- netca

emacs fails to build after switching to 5.3

2013-05-09 Thread Han Boetes
Hi, I noticed emacs failed to build after switching to 5.3. I discussed the matter with the emacs devs and they added some debug code which is triggered by CFLAGS='-g3 -DUNEXELF_DEBUG' So when it's building the main binary at "Dumping under the name emacs" I get this output: old_bss_index 25 old_

Re: emacs fails to build after switching to 5.3

2013-05-10 Thread Han Boetes
Han Boetes wrote: > I noticed emacs failed to build after switching to 5.3. I > discussed the matter with the emacs devs and they added some > debug code which is triggered by CFLAGS='-g3 -DUNEXELF_DEBUG' So > when it's building the main binary at "Dumping under the

Re: emacs fails to build after switching to 5.3

2013-05-11 Thread Han Boetes
Jérémie Courrèges-Anglas wrote: > Does that mean that *only* building with -DUNEXELF_DEBUG fails? If so, > the problem is perhaps not that important... In that case I would not have reported a problem. > I don't have a 64 bits host to repeat it. Please make it clear that the > very last version

Re: emacs fails to build after switching to 5.3

2013-05-11 Thread Han Boetes
Mark Kettenis wrote: > > Date: Sat, 11 May 2013 04:41:03 +0200 > > From: Han Boetes > > > > Han Boetes wrote: > > > I noticed emacs failed to build after switching to 5.3. I > > > discussed the matter with the emacs devs and they added some > >

set loginterface [if|ifgroup|none|all]

2010-12-16 Thread Han Boetes
Hi, I took a leap of faith and discovered some options not mentioned in pf.conf(5). What do you think of this patch? Index: share/man/man5/pf.conf.5 === RCS file: /cvs/src/share/man/man5/pf.conf.5,v retrieving revision 1.476 diff -u

Re: set loginterface [if|ifgroup|none|all]

2010-12-16 Thread Han Boetes
If it was easy I bet you would already have fixed it. And you're much more of a coder than me. Henning Brauer wrote: > if memory serves set logingterface for anything but a single > interface doesn't lead to the intended results, so this is on purpose. > unless you fix the code so that pfctl -si

Re: set loginterface [if|ifgroup|none|all]

2010-12-16 Thread Han Boetes
Henning Brauer wrote: > * Han Boetes [2010-12-16 16:41]: > > If it was easy I bet you would already have fixed it. And you're > > much more of a coder than me. > > it should be rather easy actually. i just never got around to do it. Well half of the job has already been done. ;-) # Han

Re: ld.so fix for empty LD_PRELOAD

2010-12-17 Thread Han Boetes
Mark Kettenis wrote: > > From: Marco Peereboom > > > > I kind of disagree with you mark and I think that the diff > > makes sense. > > FWIW, I feel too strongly about this. If you want to check it check it properly. For example use stat to see if LD_PRELOAD contains an existing file or use file t

Re: mg:join-line

2011-01-17 Thread Han Boetes
Kjell Wooding wrote: > I might add an undo boundary around the whole thing (I note > emacs doesn't do this properly, at least on the version I have > here)... Undoing join-line works fine with the emacs version I am using here. Built 2 days ago, from git. ~% emacs --version GNU Emacs 24.0.50.1

Design of spamd

2011-11-29 Thread Han Boetes
At the moment all spamd greylisting cares about is, "does it retry connecting?" Unfortunately a lot of spammers do a spamrun and simply try sending a spam message or 10 and then move on to the next smtp server on their list and that get's them white listed in a matter of seconds. Not really a prob

Re: Design of spamd

2011-11-29 Thread Han Boetes
Kevin Chadwick wrote: > Have you looked at greyscanner in ports. I didn't realize there is an updated version. The original I used for some time missed almost every spammer. Then I started scripting something simple myself. I'll have a look at it. # Han

Re: Design of spamd

2011-11-30 Thread Han Boetes
Boudewijn Dijkstra wrote: > Op Tue, 29 Nov 2011 21:54:37 +0100 schreef Han Boetes > : > > At the moment all spamd greylisting cares about is, "does it retry > > connecting?" Unfortunately a lot of spammers do a spamrun and > > simply try sending a spam mes

Re: Design of spamd

2011-11-30 Thread Han Boetes
Kevin Chadwick wrote: > On Wed, 30 Nov 2011 20:00:27 +0100 > Han Boetes wrote: > > > So for some reason passtime is ignored on my machine. I've tested > > this with telnet quite extensively. And after 3,4,5 attempts in a > > minute or so the address is whitelisted.

Re: Small pkill enhancement

2012-01-15 Thread Han Boetes
Not to jhijack the thread but to show another -- more generic way -- of dealing with apps that fail silently: This changes the prompt $ to red incase the $? return value of the previous process returned non-zero. red=$(printf '\e[31m') export PS1='\[\e[0;36m\]\w\[\e[01m\]\[\e[30m\]$([ $?

request for the inclusion of the pcap-filter manpage

2012-03-03 Thread Han Boetes
The current libpcap distribution contains the pcap-filter manpage which in my opinion is a very useful manpage for the use of tcpdump. http://www.manpagez.com/man/7/pcap-filter/ http://www.tcpdump.org/release/libpcap-1.2.1.tar.gz Please consider adding it to the distribution. # Han

Re: request for the inclusion of the pcap-filter manpage

2012-03-05 Thread Han Boetes
Lawrence Teo wrote: > On Mon, Mar 05, 2012 at 12:43:07AM +0100, Ingo Schwarze wrote: > > > http://www.manpagez.com/man/7/pcap-filter/ > > > http://www.tcpdump.org/release/libpcap-1.2.1.tar.gz > > > > > > Please consider adding it to the distribution. > > > > From cursory inspection, it looks like O

[trentb...@gmail.com: Re: mg: The Delete key should delete the character to the right of the cursor]

2012-03-25 Thread Han Boetes
4:46 +1100 From: "Trent W. Buck" To: Han Boetes Subject: Re: mg: The Delete key should delete the character to the right of the cursor Han, How do you feel about applying this change upstream (of me/Debian)? Ref. http://bugs.debian.org/661732 Date: Wed, 29 Feb 2012 20:28:27 +0100 Fr

Simplification of the creation of unix socket directories in /etc/rc.

2012-03-27 Thread Han Boetes
If I'm not entirely mistaken this patch results in simpler and more readable and straight forward code. The current code checks for directories that can not exist since they were removed a few lines before and then creates them. Index: rc ===

Re: Simplification of the creation of unix socket directories in /etc/rc.

2012-04-03 Thread Han Boetes
I still think this is a good patch so I bump it. Here is the original post: http://marc.info/?l=openbsd-tech&m=133288428820832&w=2 # Han

taskset for smp

2012-06-07 Thread Han Boetes
Hi, I just ran a script converting a bunch of files to mp3 and since I have a 8 core machine now I'd like to make my little script multi-threaded. So each resulting lame process will go to another core. When I ran the script I noticed that all processes ended up being run on the same processor. T

Typo "st_mtim" in stat manpage.

2012-07-10 Thread Han Boetes
I found this mistake in the stat manpage: Index: sys/stat.2 === RCS file: /cvs/src/lib/libc/sys/stat.2,v retrieving revision 1.31 diff -u -p -r1.31 stat.2 --- sys/stat.2 17 Nov 2011 14:26:14 - 1.31 +++ sys/stat.2 10 Jul 201

typos in stat(2)

2012-07-11 Thread Han Boetes
I found these typos in the stat(2) manpage: Index: sys/stat.2 === RCS file: /cvs/src/lib/libc/sys/stat.2,v retrieving revision 1.31 diff -u -p -r1.31 stat.2 --- sys/stat.2 17 Nov 2011 14:26:14 - 1.31 +++ sys/stat.2 10 Jul

prong: keep your daemons alive and report if they are fataly wounded.

2012-08-24 Thread Han Boetes
Hi, This is my idea of how to implement this functionality. Rather simple and transparent. If you like the idea but think you can make a better implementation feel free to make it.. Yes there are other implementations that can do about the same, but I wanted to write something the OpenBSD way. I

Re: prong: keep your daemons alive and report if they are fataly wounded.

2012-08-24 Thread Han Boetes
Gilles Chehade poolp.org> writes: > Also, restarting a daemon that has crashed because of an exploit means > you expose it again with maybe less luck next time (kindly reminded by > mail Right, that's a valid point. In that case you'd only want an email to be sent. Either way, my script is from

http://www.dnssec-failed.org/ is being resolved anyway.

2012-09-04 Thread Han Boetes
So I am running unbound with the dnssec extensions: % stripcom /var/unbound/etc/unbound.conf server: verbosity: 1 module-config: "validator iterator" auto-trust-anchor-file: "/var/unbound/etc/root.key" val-log-level: 2 % nslookup www.dnssec-failed.org ;; Got SERVFAIL reply from 127.0.0.1, tryin