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 <flor...@openbsd.org> 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 (v

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

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,

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 */ if (maclhead !=

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) {

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 of

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 h...@boetes.org 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

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 name emacs I get this output

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

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.

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

2012-08-24 Thread Han Boetes
Gilles Chehade gilles at 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

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

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

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.

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-techm=133288428820832w=2 # Han

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

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

2012-03-25 Thread Han Boetes
2012 11:14:46 +1100 From: Trent W. Buck trentb...@gmail.com To: Han Boetes h...@mijncomputer.nl 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

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 OpenBSD is using

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: 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\]$([ $?

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. What version of OpenBSD are you running

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 --- netcat.c 21

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: 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 #

Re: ld.so fix for empty LD_PRELOAD

2010-12-17 Thread Han Boetes
Mark Kettenis wrote: From: Marco Peereboom sl...@peereboom.us 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

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

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

{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 nowadays.

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

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 ping.c

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 install is meant to be followed

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:

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 ---

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