Re: iked + isakmpd on the same machine

2014-04-24 Thread Alexander Hall
On 04/24/14 21:53, Stuart Henderson wrote: On 2014/04/24 20:30, Mike Belopuhov wrote: On 24 April 2014 20:25, Chris Cappuccio ch...@nmedia.net wrote: Mike Belopuhov [m...@belopuhov.com] wrote: more like it's not supported and is not supposed to work. it's like running nginx and apache at the

Re: [patch l2tp_ctrl.c] malloc memset = calloc

2014-04-24 Thread Alexander Hall
On April 25, 2014 2:14:29 AM CEST, Peter Malone pe...@petermalone.org wrote: Hi, Here's another. Index: l2tp_ctrl.c === RCS file: /cvs/src/usr.sbin/npppd/l2tp/l2tp_ctrl.c,v retrieving revision 1.16 diff -u -p -u -r1.16 l2tp_ctrl.c

Re: IPv6 by default

2014-04-29 Thread Alexander Hall
On 04/30/14 00:12, Ted Unangst wrote: On Tue, Apr 29, 2014 at 10:18, Simon Perreault wrote: Le 2014-04-29 10:12, Ted Unangst a écrit : - Run both requests in parallel. - When one response is received, start a short timer (e.g. 200ms or so). - If the second response is received before the timer

Re: IPv6 by default

2014-04-29 Thread Alexander Hall
On 04/30/14 01:45, Alexander Hall wrote: However, doing the requests in parallel, each geting the same treatment as if done in sequence (timing out if need be, etc), and then sort them by the family directive as per resolv.conf could in theory cut the lookup time in half... Not that this has

Re: malloc in libssl/src/apps

2014-05-04 Thread Alexander Hall
On 05/04/14 21:50, Jean-Philippe Ouellet wrote: On Sun, May 04, 2014 at 12:17:16PM -0600, Theo de Raadt wrote: We are going to completely ignore diffs which change multiple idioms at once. Okay. That is how mistakes get made. Yep, more true than I realized. Here's a simpler one: Index:

Re: malloc in libssl/src/apps

2014-05-05 Thread Alexander Hall
On 05/06/14 00:10, Matthew Dempsky wrote: On Sun, May 4, 2014 at 8:26 PM, Jean-Philippe Ouellet jean-phili...@ouellet.biz wrote: On Sun, May 04, 2014 at 11:30:40PM +0200, Alexander Hall wrote: NULL theoretically could be != 0 Umm... short of something like: #undef NULL #define NULL

Re: malloc in libssl/src/apps

2014-05-05 Thread Alexander Hall
On May 6, 2014 1:34:01 AM CEST, Matthew Dempsky matt...@dempsky.org wrote: On Mon, May 5, 2014 at 3:56 PM, Alexander Hall alexan...@beard.se wrote: I believe a similar situation could appear with not explicitly initialized global or static declarations, e.g. in sbin/fsirand/fsirand.c

Re: NOINET6 by default

2014-05-14 Thread Alexander Hall
On 05/15/14 00:48, Henning Brauer wrote: * Alexander Bluhm alexander.bl...@gmx.net [2014-05-15 00:15]: On Wed, May 14, 2014 at 11:29:20PM +0200, Henning Brauer wrote: so as discussed recently having the inet6 link-local addrs on every interface by default is stupid and a security risk.

Make rmt(8) more usable for remote dumps

2014-05-18 Thread Alexander Hall
Hi, Here's a diff that's been in my tree for quite some time, getting polished back and forth. I think I'm quite satisfied as is now, and would like to get opinions and/or OK's to commit it. This diff gives rmt the following abilities: - limit the (remote) file operations to a specific directory

Re: ld.so take 2

2014-06-05 Thread Alexander Hall
On June 5, 2014 2:34:00 PM CEST, Otto Moerbeek o...@drijf.net wrote: OK, Grrr... messed this up, sent thw wrong version. Both the To: header and the text contain errors, but the intend should be clear. Diff is the right version. Take care when replying. -Otto On Thu, Jun 05, 2014 at

Re: ANONCVS MIRROR MAINTAINERS PLEASE READ!

2014-06-06 Thread Alexander Hall
On 06/06/14 19:29, Stuart Henderson wrote: On 2014/06/06 11:17, Bob Beck wrote: If you or someone you love runs an anoncvs server, they need to see this. We recently added commitid support to our cvs repo. all works fine with cvs and this. However, we ran into a problem with cvsync in ports.

Re: ANONCVS MIRROR MAINTAINERS PLEASE READ!

2014-06-06 Thread Alexander Hall
On 06/06/14 19:29, Stuart Henderson wrote: On 2014/06/06 11:17, Bob Beck wrote: If you or someone you love runs an anoncvs server, they need to see this. We recently added commitid support to our cvs repo. all works fine with cvs and this. However, we ran into a problem with cvsync in ports.

Re: ftp(1) User-Agent

2014-06-12 Thread Alexander Hall
On June 11, 2014 6:18:19 AM CEST, Lawrence Teo l...@openbsd.org wrote: This diff allows ftp(1) to change the User-Agent for HTTP(S) URL requests via the FTPUSERAGENT environment variable (personally I prefer HTTPUSERAGENT but FTPUSERAGENT is what's used by ftp(1) on other BSDs). This is useful

Re: howmany macro: integer overflow

2014-06-18 Thread Alexander Hall
On June 14, 2014 1:13:56 PM CEST, Tobias Stoeckmann tob...@stoeckmann.org wrote: Hi, the howmany macro as used in param.h and select.h is prone to an integer overflow. It adds divisor-1 to the base value, which means that it COULD overflow. Most of the times, the howmany macro is used with

Re: nsd rc script check returns strange exit code when nsd not running.

2014-06-25 Thread Alexander Hall
On 06/25/14 14:06, Stuart Henderson wrote: On 2014/06/25 13:04, Stuart Henderson wrote: On 2014/06/24 20:56, b...@tilderoot.com wrote: The nsd rc script returns an exit code other than 1 when nsd is not running. A problem arises when using a configuration management (CM) system such as ansible

Re: nsd rc script check returns strange exit code when nsd not running.

2014-06-25 Thread Alexander Hall
On 06/26/14 06:29, Alexander Hall wrote: On 06/25/14 14:06, Stuart Henderson wrote: On 2014/06/25 13:04, Stuart Henderson wrote: On 2014/06/24 20:56, b...@tilderoot.com wrote: The nsd rc script returns an exit code other than 1 when nsd is not running. A problem arises when using

Re: diff: Option to use duids in /etc/dumpdates

2014-07-09 Thread Alexander Hall
On 07/08/14 19:36, Maximilian Fillinger wrote: Hi! This diff adds a -U flag to dump that allows using disklabel UIDs in /etc/dumpdates. That makes incremental dumps possible when a disk is roaming between device files. I like the idea. I would have liked to read an explanation for the

Re: diff: Option to use duids in /etc/dumpdates

2014-07-09 Thread Alexander Hall
On 07/09/14 21:13, Maximilian Fillinger wrote: Thanks for your feedback! I like the idea. I would have liked to read an explanation for the selected solution though, or a brief description of it. I'll add a description below for the benefit of other readers. I think adding a check to make

Re: diff: Option to use duids in /etc/dumpdates

2014-07-10 Thread Alexander Hall
On 07/09/14 23:44, Alexander Hall wrote: While looking at this, I noticed we don't support specifying the duid for the device to dump. Thinking a bit more, I'm forming a different approach for this. Hold on. Hm, the different approach was left out because of the messy argument parsing. Bah

Re: ftp(1) User-Agent

2014-07-11 Thread Alexander Hall
On 07/10/14 06:30, Lawrence Teo wrote: About a month ago, I sent a diff that allows ftp(1) to set its User-Agent. Based on feedback from halex@ and deraadt@, I have changed it so that the User-Agent can be set via a -U command-line option instead of an environment variable. I have also

Re: diff: Option to use duids in /etc/dumpdates

2014-07-11 Thread Alexander Hall
On 07/11/14 01:15, Maximilian Fillinger wrote: On 07/10/14 16:28, Alexander Hall wrote: Anyway, I worked on your diff a bit more: - keep having -U and -u separate (as discussed) - use Uflag instead of duidflag - bail out if the duid is all 0. - allow specifying the drive to dump by duid.part

Re: sshd add back hmac-sha1

2014-07-11 Thread Alexander Hall
On 07/11/14 11:32, Ted Unangst wrote: I think the proposal rampaging went one algorithm too far. sha1 is the best algorithm supported by many clients and it's still pretty secure. without it, a lot of clients have stopped working. temporarily alieve the pain? Naaa.. You did this just for

Re: diff: Option to use duids in /etc/dumpdates

2014-07-11 Thread Alexander Hall
On 07/11/14 14:33, Maximilian Fillinger wrote: On Fri, 2014-07-11 at 14:22 +0200, Alexander Hall wrote: If there are no other objections, I'd like to commit this today. Just don't forget to get rid of this + } else { fprintf(stderr, duid: %s\n, duid); } before committing. Hmm

Re: ftp(1) User-Agent

2014-07-11 Thread Alexander Hall
On 07/11/14 17:35, Lawrence Teo wrote: On Fri, Jul 11, 2014 at 12:20:00PM +0200, Alexander Hall wrote: On 07/10/14 06:30, Lawrence Teo wrote: About a month ago, I sent a diff that allows ftp(1) to set its User-Agent. Based on feedback from halex@ and deraadt@, I have changed it so

Re: ftp(1) User-Agent

2014-07-11 Thread Alexander Hall
On 07/11/14 20:06, Lawrence Teo wrote: On Fri, Jul 11, 2014 at 05:46:02PM +0200, Alexander Hall wrote: On 07/11/14 17:35, Lawrence Teo wrote: On Fri, Jul 11, 2014 at 12:20:00PM +0200, Alexander Hall wrote: On 07/10/14 06:30, Lawrence Teo wrote: About a month ago, I sent a diff that allows

Re: Print strings with double quotes safely in ifconfig(8)

2014-08-10 Thread Alexander Hall
On August 10, 2014 11:17:59 PM CEST, Vadim Zhukov persg...@gmail.com wrote: This changes the way ifconfig(8) to print lines like 'crazy nwid', i.e., containing double quotes inside the data being output. At the present, such lines will be printed in the following way: crazy nwid And this makes

Re: Does athn - Atheros IEEE 802.11a/g/n wireless supports 802.11n mode?

2014-08-14 Thread Alexander Hall
On August 14, 2014 2:08:04 PM CEST, Denis Lapshin den...@mindall.org wrote: Does athn driver support 802.11n mode for all Atheros devices which has N mode implemented? Apart from the useful information you've already received, I'd like to add that the list archives would certainly, well, most

Re: ksh history bug

2014-08-15 Thread Alexander Hall
On Thu, Aug 14, 2014 at 12:10:58PM -0400, Jared Yanovich wrote: + If first and last are both omitted, the previous 16 commands shall be listed or the previous single command shall be edited (based on the -l option). that kind of suggests that the fc -l producing those previous 16

Re: changing ffs mount between rw and ro while preserving softdep

2014-08-28 Thread Alexander Hall
On 08/28/14 23:06, Paul de Weerd wrote: On Thu, Aug 28, 2014 at 06:27:48PM +, Miod Vallat wrote: | Which is why the current way to remove softdep from a filesystem is a | rw+softdep - ro - rw transition, which would no longer work with your | diff. | | It would work, but you'd have to

Re: audioctl: drop useless fields

2014-09-11 Thread Alexander Hall
On 09/11/14 09:58, Alexandre Ratchov wrote: On Wed, Sep 10, 2014 at 07:31:17PM +0200, Alexandre Ratchov wrote: audioctl output is full of useless, misleading and/or unreliable fields. Let's keep the usable ones only. The plan is to remove them from the kernel as well. OK? I've been asked in

Re: make top combine cpu lines by default if you have a lot of cpus

2014-09-16 Thread Alexander Hall
On September 16, 2014 2:11:28 PM CEST, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Tue, 16 Sep 2014 21:51:00 +1000 From: David Gwynne da...@gwynne.id.au if you have more than 8 cpus, combine the cpu lines by default. Just curious, is there a command line argument to expand the

Re: make top combine cpu lines by default if you have a lot of cpus

2014-09-16 Thread Alexander Hall
needing it, it might make sense not to compress the CPU list for non-interactive use. /Alexander On 16 Sep 2014, at 11:08 pm, Alexander Hall alexan...@beard.se wrote: On September 16, 2014 2:11:28 PM CEST, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Tue, 16 Sep 2014 21:51:00 +1000

Re: make top combine cpu lines by default if you have a lot of cpus

2014-09-17 Thread Alexander Hall
On 09/17/14 07:44, Alexander Hall wrote: On September 17, 2014 3:54:34 AM CEST, David Gwynne da...@gwynne.id.au wrote: not yet. we could make -1 toggle combine_cpu, or have something like -1 and -N for combined and N cpus displayed? If we want it, I'm in strong favor for the latter. Toggles

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-18 Thread Alexander Hall
On September 18, 2014 9:40:44 AM CEST, bytevolc...@safe-mail.net wrote: This patch adds an option -t template to mount_tmpfs, which populates the new tmpfs volume with a directory immediately after creation. Man page update included for explanation. Much of the code was grafted from newfs

Fix slow DHCP requests in /etc/netstart

2014-09-25 Thread Alexander Hall
Before performing a dhcp request, /etc/netstart explicitly takes the interface down. As noted (by me) at g2k14, and also at work, this results in a significant delay in getting the address. I'm not all into enterprise switch magic, but someone hinted that this could come from the switch

Re: Fix slow DHCP requests in /etc/netstart

2014-09-26 Thread Alexander Hall
On 09/26/14 14:36, Stuart Henderson wrote: On 2014/09/26 07:42, Alexander Hall wrote: Before performing a dhcp request, /etc/netstart explicitly takes the interface down. As noted (by me) at g2k14, and also at work, this results in a significant delay in getting the address. I'm not all

Re: make release fails if SUDO is set in mk.conf

2014-10-24 Thread Alexander Hall
Maybe $ make SUDO= release works? That enforces the value of SUDO, but I've never tried it for an empty value. Or try $ make SUDO=' ' release /Alexander On October 24, 2014 8:34:54 AM CEST, thev...@openmailbox.org wrote: with SUDO set in /etc/mk.conf: if make release is run as root it

SSH_ASKPASS manpage clarification

2013-07-20 Thread Alexander Hall
This is an attempt to make the ssh-* man pages more exact regarding SSH_ASKPASS, when used for ssh-agent key confirmation. The point I'm making is that the relevant SSH_ASKPASS environment variable is not that of ssh-add(1) (apart from when ssh-add is actually asking for a passphrase). On a

Re: SSH_ASKPASS manpage clarification

2013-07-21 Thread Alexander Hall
On 07/21/13 08:11, patrick keshishian wrote: Hi, Couple of comments inline. On Sun, Jul 21, 2013 at 03:16:28AM +0200, Alexander Hall wrote: This is an attempt to make the ssh-* man pages more exact regarding SSH_ASKPASS, when used for ssh-agent key confirmation. The point I'm making

Re: SSH_ASKPASS manpage clarification

2013-07-21 Thread Alexander Hall
On 07/21/13 10:07, patrick keshishian wrote: On Sun, Jul 21, 2013 at 09:15:00AM +0200, Alexander Hall wrote: On 07/21/13 08:11, patrick keshishian wrote: However, the sentence still reads awkwardly. Are you trying to say the requirement is: if (an_exit_status == 0

Re: SSH_ASKPASS manpage clarification

2013-07-21 Thread Alexander Hall
On 07/21/13 11:05, Jason McIntyre wrote: On Sun, Jul 21, 2013 at 09:15:00AM +0200, Alexander Hall wrote: On 07/21/13 08:11, patrick keshishian wrote: If so, maybe a better wording would be: Successful confirmation is signaled by a zero exit status, and the first line

Re: SSH_ASKPASS manpage clarification

2013-07-21 Thread Alexander Hall
On 07/21/13 11:31, Jason McIntyre wrote: On Sun, Jul 21, 2013 at 11:19:49AM +0200, Alexander Hall wrote: regarding your diff... i don't know this stuff well enough to be able to say whether your moving stuff around makes sense, and whether you're moving it to the right place. note, for example

Re: ksh global PWD env variable

2013-07-21 Thread Alexander Hall
I for one don't see a general interest in knowing ones parents potentially faked wd. You can find out your wd by saner means. /Alexander Bertrand Janin b...@janin.com wrote: PWD is considered local in /bin/ksh while it is global in most other shells (ksh93, csh, bash, zsh). In practice, it

Re: ksh global PWD env variable

2013-07-21 Thread Alexander Hall
On 07/21/13 23:43, Matthias Kilian wrote: On Sun, Jul 21, 2013 at 10:51:17PM +0200, Joerg Sonnenberger wrote: On Sun, Jul 21, 2013 at 10:01:33PM +0200, Alexander Hall wrote: I for one don't see a general interest in knowing ones parents potentially faked wd. You can find out your wd by saner

Re: useradd with empty -k doesn't chown/chmod new home directory

2013-09-05 Thread Alexander Hall
Todd C. Miller todd.mil...@courtesan.com wrote: I changed my mind and decided it is better to just move the chown and chmod out of copydotfiles() and add an explicit check for skeldir set to the empty string. Much as I would like to prettify the user.c code it is a losing battle so here is a

Re: /etc/rc.d/rc.subr; prefix ${pexp} with script interpretor path

2013-09-16 Thread Alexander Hall
On 09/16/13 20:48, Craig R. Skinner wrote: On 2013-09-16 Mon 15:12 PM |, Paul de Weerd wrote: Hi Craig, --- cat bad_script.sh # This is a VERY BAD example of a script! This will break your # shebang thingambob echo Now what...

Re: /etc/rc.d/rc.subr; prefix ${pexp} with script interpretor path

2013-09-16 Thread Alexander Hall
On 09/16/13 23:32, Marc Espie wrote: On Mon, Sep 16, 2013 at 11:28:06PM +0200, Alexander Hall wrote: sed can do it all. Really. Notes: - I separate re_quote() cause I think it can be useful in other places. - I think re_quote() is (basic) regex complete. - I don't care if the interpreter

Re: /etc/rc.d/rc.subr; prefix ${pexp} with script interpretor path

2013-09-17 Thread Alexander Hall
On 09/17/13 13:49, Craig R. Skinner wrote: On 2013-09-16 Mon 23:28 PM |, Alexander Hall wrote: sed can do it all. Really. This is getting beyond me Alexander. Is sed a mechanism to step away from using file(1) ? Heh, sorry about that. :) Nah, it's merely a way to combine `head | grep

Re: pkill -l

2013-10-21 Thread Alexander Hall
On 10/22/13 02:09, Ted Unangst wrote: I don't think the -l flag to pkill is useful. It's behavior is oddly different from pgrep -l (and more different with pgrep/pkill -f). Or rather, it's not just long output, but also turns on verbose mode when otherwise nothing would be printed. The only use

Re: make ftp(1) ignore leading whitespace in URLs

2013-11-05 Thread Alexander Hall
On 11/05/13 13:56, Stefan Sperling wrote: Before: $ ftp ' http://localhost/snap/INSTALL.amd64' ftp: http: no address associated with name ftp: Can't connect or login to host ` http' After: $ ftp ' http://localhost/snap/INSTALL.amd64' Trying ::1... Trying 127.0.0.1... Requesting

Re: make ftp(1) ignore leading whitespace in URLs

2013-11-05 Thread Alexander Hall
On 11/05/13 14:44, Stefan Sperling wrote: On Tue, Nov 05, 2013 at 02:08:21PM +0100, Alexander Hall wrote: On 11/05/13 13:56, Stefan Sperling wrote: Before: $ ftp ' http://localhost/snap/INSTALL.amd64' ftp: http: no address associated with name ftp: Can't connect or login to host ` http

Re: Weard security report

2013-11-06 Thread Alexander Hall
Joerg Sonnenberger jo...@britannica.bec.de wrote: On Wed, Nov 06, 2013 at 10:24:53AM -0500, sven falempin wrote: == /var/db/cloud.json diffs (-OLD +NEW) == --- /dev/null Fri Oct 25 01:30:33 2013 +++ /var/db/cloud.json Thu Oct 17 17:21:15 2013 This just means that the file

Re: Weird loop in ftp client

2013-11-23 Thread Alexander Hall
On 11/23/13 20:39, sven falempin wrote: Hello, Another point of vue : Because curl is in base, what does ftp client add to the system ? 1. It's not. 2. Interactivity. /Alexander

Re: diff for passing -b to spamd-setup when running spamd in blacklist only mode

2013-12-19 Thread Alexander Hall
On 12/14/13 13:15, Maurice Janssen wrote: On Fri, Dec 13, 2013 at 11:53:06PM +0100, Alexander Hall wrote: On 12/13/13 22:32, Maurice Janssen wrote: Hi, After some discussion on misc@ (see http://comments.gmane.org/gmane.os.openbsd.misc/209233 ) I came up with the patch below. Right now, spamd

Re: Alter daemon scheduling priority with renice for rc.d

2013-12-21 Thread Alexander Hall
skin...@britvault.co.uk wrote: On 2013-12-21 Sat 17:13 PM |, Alexander Hall wrote: Comments/testing observations/? This is not the purpose nor responsibility off the rc.d scripts. What alternatives have you in mind? Daemons that behave? I haven't had a problem with it. Maybe

Re: column memory leak fix

2013-12-30 Thread Alexander Hall
Loganaden Velvindron lo...@elandsys.com wrote: I'm mostly interested in finding the small security issues and fixing them, rather than fixing style issues :-) Keeping good style helps avoiding bugs, though.

Re: Randomization from the bootblocks

2014-01-02 Thread Alexander Hall
On 01/02/14 11:50, Alexey Suslikov wrote: Theo de Raadt deraadt at cvs.openbsd.org writes: This requires an upgrade of the bootblocks and at least /etc/rc (which saves an entropy file for future use). Some bootblocks will be able to use machine-dependent features to improve the entropy even

Re: USB install image for OpenBSD 5.5 - TESTING REQUIRED

2014-03-01 Thread Alexander Hall
On 02/28/14 23:51, Chris Cappuccio wrote: Here are some potential USB installer images for OpenBSD/amd64 5.5 http://www.nmedia.net/chris/install55.fs http://www.nmedia.net/chris/miniroot55.fs The install55.fs contains full installation packages. The miniroot55.fs is a ramdisk-kernel only (for

Re: nfs rename is not atomic

2014-03-29 Thread Alexander Hall
On 03/29/14 08:06, Philip Guenther wrote: On Wed, Mar 26, 2014 at 7:50 AM, Mike Belopuhov m...@belopuhov.com wrote: After a bunch of failures (ld.so can't find libc.so for the install(1)) with parallel make build (-j 4) on an NFS setup I came up with this simple testcase that shows that

Re: uvm_pmemrange.c questions

2011-03-02 Thread Alexander Hall
On 03/02/11 00:37, Amit Kulkarni wrote: Hi, I found 2 possible null pointers by clang static analyzer and I have attached it to email later. uh-oh... [demime 1.01d removed an attachment of type application/octet-stream which had a name of uvm_pmemrange_1.diff] [demime 1.01d removed an

Re: make rain(6) use a sane default delay

2011-03-21 Thread Alexander Hall
On 03/21/11 08:46, Martynas Venckus wrote: On 3/21/11, Matthieu Herrb matthieu.he...@laas.fr wrote: rain(6) is useless. but still it should provide sane defaults ihmo. ok? Or use sane defaults based on terminal speed; like worms(8) does. For this kind of app (which is indeed quite a waste

Re: make rain(6) use a sane default delay

2011-03-21 Thread Alexander Hall
On 03/21/11 10:18, Alexander Hall wrote: On 03/21/11 08:46, Martynas Venckus wrote: On 3/21/11, Matthieu Herrb matthieu.he...@laas.fr wrote: rain(6) is useless. but still it should provide sane defaults ihmo. ok? Or use sane defaults based on terminal speed; like worms(8) does

Re: Silence daily tempdir cleanup failures

2011-04-15 Thread Alexander Hall
On 04/13/11 09:43, Alexander Hall wrote: On 04/13/11 01:30, Charlie Root wrote: Removing scratch and junk files: find: ./lynx-qAO4OXZzPa: No such file or directory Since I have other cron jobs using /tmp for temporary files (and deleting them) while /etc/daily is running, I keep getting

Re: apply(1) small cleanup

2011-04-26 Thread Alexander Hall
On 04/26/11 18:13, Mark Lumsden wrote: @@ -179,8 +179,7 @@ main(int argc, char *argv[]) /* Run the command. */ if (debug) (void)printf(%s\n, c); - else - if (mysystem(c)) + else if (mysystem(c))

Making umount DUID capable

2011-05-05 Thread Alexander Hall
In the current spirit of making stuff DUID capable i found that umount(8) was still not so. Diff makes use of unrawname() from fsck/fsutils.[ch]. Not sure if this is what and how we want it, so no man page changes included so far. Thoughts? OK's? Manpage diffs? ;-) /Alexander Index: Makefile

Re: adduser(8) - adduser.conf quotations

2011-05-12 Thread Alexander Hall
On 05/12/11 10:21, Mark Lumsden wrote: On Thu, May 12, 2011 at 09:06:44AM +0200, Alexander Hall wrote: On 05/12/11 07:30, Mark Lumsden wrote: Hopefully one day adduser(8), will have use warnings; added to it. Looking at it, I'd rather see it shot in the head and buried. Well, maybe warnings

Re: Optionally ignore host/network is down errors for ping(8)

2011-05-13 Thread Alexander Hall
On 05/13/11 04:54, Todd T. Fries wrote: ping host 21 | awk '/is down/{next}{print}' grep -v was too trivial, was it? ;-D

Re: set skip on ifgroup

2011-05-19 Thread Alexander Hall
On 05/18/11 23:31, Stuart Henderson wrote: set skip in PF has a slightly unexpected behaviour; rather than skipping by interface group, it matches on the non-numeric part of an interface name. I think the prefix match test is a common behaviour so I think you should keep that. Example granti

Re: set skip on ifgroup

2011-05-19 Thread Alexander Hall
On 05/19/11 11:43, Reyk Floeter wrote: On Thu, May 19, 2011 at 11:26:59AM +0200, Claudio Jeker wrote: To be honest I'm not sure who will do a 'set skip on sis' or 'set skip on em'. I would ;-) You would, however, not have a big problem adding 'group em' to the corresponding

Re: Making umount DUID capable

2011-05-22 Thread Alexander Hall
On 05/06/11 04:17, Alexander Hall wrote: In the current spirit of making stuff DUID capable i found that umount(8) was still not so. Diff makes use of unrawname() from fsck/fsutils.[ch]. Not sure if this is what and how we want it, so no man page changes included so far. I've been notified

make wrapper functions in ksh.kshrc transparent

2011-06-27 Thread Alexander Hall
A post by tedu@ opened my eyes to the function keyword in ksh, which allows me to fix an annoyance that has bitten me numerous times. after sourcing /etc/ksh.kshrc, $ echo $SSH_AUTH_SOCK /tmp/ssh-IS02tLB2UEAT/agent.19126 $ SSH_AUTH_SOCK= ssh whatever ssh: Could not resolve hostname whatever:

Re: remote dump to file

2011-09-27 Thread Alexander Hall
On 08/25/11 14:33, Manuel Giraud wrote: Hi, This patch makes the following command working: $ RSH=ssh dump -0au -f remote:dump.0 / even if dump.0 doesn't already exists on remote. Note: i cannot test this patch on st(4) device. Index: tape.c

Re: fix possible NULL deref in sys/dev/usb/uhub.c

2011-09-29 Thread Alexander Hall
On 09/29/11 12:06, Stefan Sperling wrote: On Fri, Feb 18, 2011 at 03:44:55AM +, Jacob Meuser wrote: at line 190, if nports == 0, 'hub' will be NULL at line 334, and 'if (hub-ports)' will be a NULL dereference. found by Amit Kulkarni using clang. I OK'd this diff back in February, but it

Re: installation to (W)hole disk - saner default

2012-03-07 Thread Alexander Hall
David Vasek va...@fido.cz wrote: Hello all. While I would always defend everybody's right to use OpenBSD to shoot himself in his foot, I don't think it is neither practical nor ethical to hint him to do so. So if the installer finds a valid MBR which contains some partition(s), then don't

Re: diff: improving msdosfs write speed for large files

2012-04-04 Thread Alexander Hall
Alexander Polakov polac...@gmail.com wrote: This is a diff from NetBSD pr.34583: http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=34583 Quoting the author: I noticed that when writing large file (hundreds of megabytes) to an msdos disk, the writing speed to a file

Re: Do you want to do any manual network configuration?

2012-04-19 Thread Alexander Hall
Henning Brauer henn...@openbsd.org wrote: While reviewing the upcoming second edition of Michael Lucas' Absolute OpenBSD I actually paid attention to the installer instead of my usual autopilot mode ;) and stumbled over the Do you want to do any manual network configuration? question. I think it

move miniroot/dhclient.conf to Attic

2012-04-20 Thread Alexander Hall
Someone mentioned this file was unused, and indeed it seems so. Killwithfire. ok? /Alexander Index: distrib/miniroot/dhclient.conf === RCS file: distrib/miniroot/dhclient.conf diff -N distrib/miniroot/dhclient.conf ---

Re: Diplay 0 connections on tcpbench after last client disconnect.

2012-06-16 Thread Alexander Hall
On 06/16/12 01:07, Christiano F. Haesbaert wrote: Hi, this behaviour is really annoying, in tcp server, when the last user disconnects, we don't update the status line, so it keeps showing 1 connected user, it would be better to show Conn: 0. BEFORE sauron:haesbaert: tcpbench -s elapsed_ms

Re: Diplay 0 connections on tcpbench after last client disconnect.

2012-06-16 Thread Alexander Hall
On 06/17/12 01:08, Alexander Hall wrote: NAN might be more appropriate than 0. For Avg Mbps, that is.

Re: Diplay 0 connections on tcpbench after last client disconnect.

2012-06-16 Thread Alexander Hall
On 06/17/12 01:20, Christiano F. Haesbaert wrote: On Sun, Jun 17, 2012 at 01:08:25AM +0200, Alexander Hall wrote: On 06/16/12 01:07, Christiano F. Haesbaert wrote: Hi, this behaviour is really annoying, in tcp server, when the last user disconnects, we don't update the status line, so it keeps

ncheck_ffs DUID support

2012-07-11 Thread Alexander Hall
This adds DUID support to ncheck_ffs. Testers? ok? /Alexander Index: Makefile === RCS file: /data/openbsd/cvs/src/sbin/ncheck_ffs/Makefile,v retrieving revision 1.3 diff -u -p -r1.3 Makefile --- Makefile29 Jun 1996 19:25:09

Re: ncheck_ffs DUID support

2012-07-12 Thread Alexander Hall
On 07/11/12 23:43, Jan Stary wrote: On Jul 11 19:18:21, Alexander Hall wrote: This adds DUID support to ncheck_ffs. Testers? ok? This indeed enables ncheck_ffs for DUIDs, but breaks ncheck_ffs for /dev/wd0x My fstab says 5d2ade1fc5a8d569.n /tmp ffs rw,softdep,nodev,nosuid 1

Re: ncheck_ffs DUID support

2012-07-13 Thread Alexander Hall
On 07/12/12 22:55, Alexander Hall wrote: On 07/11/12 23:43, Jan Stary wrote: On Jul 11 19:18:21, Alexander Hall wrote: This adds DUID support to ncheck_ffs. Testers? ok? This indeed enables ncheck_ffs for DUIDs, but breaks ncheck_ffs for /dev/wd0x My fstab says 5d2ade1fc5a8d569.n /tmp

Re: (2) HTTP basic authentication for ftp(1) (RFC 2617)

2012-08-12 Thread Alexander Hall
On 08/06/12 22:56, Christiano F. Haesbaert wrote: Please ignore the other thread, it takes ages for me to open my sent box over gprs, so I'm opening a new one. Index: fetch.c === RCS file: /cvs/src/usr.bin/ftp/fetch.c,v retrieving

Re: (2) HTTP basic authentication for ftp(1) (RFC 2617)

2012-08-13 Thread Alexander Hall
On 08/13/12 17:37, Christiano F. Haesbaert wrote: On Mon, Aug 13, 2012 at 04:33:40PM +0200, Christiano F. Haesbaert wrote: I think I've hunt this down http://tools.ietf.org/html/rfc3986#section-3.3 If you follow the BNF for path, you have. path - path-absolute - segment-nz - 1*pchar - \

Re: unterminated make variables

2012-08-19 Thread Alexander Hall
On 08/18/12 13:48, Kenneth R Westerback wrote: On Sat, Aug 18, 2012 at 12:29:51PM +0200, Marc Espie wrote: Our make currently misbehaves and doesn't treat this as a problem. A=a a: echo ${A there are several possibilities. 1/ do like gmake and treat this as an actual error. 2/ keep

sparc64 panic 5.1 updated

2012-08-31 Thread Alexander Hall
https://alexander.beard.se/spub/d53243dfe1f006a77c836eabbcb3e1e4/panic.sparc64_5.1

Re: sparc64 panic 5.1 updated

2012-08-31 Thread Alexander Hall
On 08/31/12 20:04, Alexander Hall wrote: https://alexander.beard.se/spub/d53243dfe1f006a77c836eabbcb3e1e4/panic.sparc64_5.1 Bah, decided not to send to tech but forgot to change to:. :-) Well help yourself, should you be interested. For now I cannot even boot the system, so no dmesg

fix disable lidsuspend on shutdown by init(8)

2012-09-11 Thread Alexander Hall
This pulls in machine/cpu.h so we can see CPU_LIDSUSPEND if it's there. Also fix the resulting compilation errors now that the code is actually used. Tested on my X61s/amd64, where shutting down using the power button now behaves like halt -p in that it won't suspend while shutting down if I

Re: script to make installable disk image

2012-09-12 Thread Alexander Hall
On 09/06/12 12:01, Thomas Jeunet wrote: On Wed, Sep 5, 2012 at 9:36 AM, Ted Unangst t...@tedunangst.com wrote: We provide many forms of installation media, but neither floppy nor iso images are best suited for usb drives. It's pretty easy to make a hard drive image containing the installer

Re: a question concerning make and the shell

2012-09-12 Thread Alexander Hall
On 09/12/12 17:48, Marc Espie wrote: Consider the common makefile idiom: a: # cmd that builds a @cmd The # line is actually a comment for the shell, that will be echo'd, and then passed to a new shell... which does nothing with it. I'm wondering if there are any ways (possibly

Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Alexander Hall
On 09/19/12 10:16, Paul Irofti wrote: On Tue, Sep 18, 2012 at 05:46:55PM -0700, Marco S Hyman wrote: On Sep 18, 2012, at 3:27 PM, Paul Irofti p...@irofti.net wrote: Because most of the guys in the hackingroom didn't get this, the reference is to a book named 'American Gods' by Neil Gaimen.

Re: fix disable lidsuspend on shutdown by init(8)

2012-09-22 Thread Alexander Hall
Ping, ping, on this essentially +1 -1 diff? Only concern I have is whether #include machine/cpu.h could have side-effects on architectures I don't know of (which, admittedly, is quite a few). /Alexander On 09/12/12 00:43, Alexander Hall wrote: This pulls in machine/cpu.h so we can see

Re: fix disable lidsuspend on shutdown by init(8)

2012-09-23 Thread Alexander Hall
On 09/23/12 22:24, Ted Unangst wrote: On Sat, Sep 22, 2012 at 14:01, Theo de Raadt wrote: Only concern I have is whether #include machine/cpu.h could have side-effects on architectures I don't know of (which, admittedly, is quite a few). it is a bad idea to pull machine/ header files. I was

Re-evaluation of smtpd queue entries

2012-09-26 Thread Alexander Hall
Hi! When setting up your first host or hosts to use smtpd it is inevitable to make some mistakes here and there, which e.g. could cause delivery attempts of an email to the wrong host (relay via boo.hoo). Now, that is obviously not a problem per se, but after fixing the config, I cannot

Re: Re-evaluation of smtpd queue entries

2012-09-26 Thread Alexander Hall
On 09/26/12 12:50, Gilles Chehade wrote: On Wed, Sep 26, 2012 at 11:20:31AM +0200, Alexander Hall wrote: Hi! Hi, When setting up your first host or hosts to use smtpd it is inevitable to make some mistakes here and there, which e.g. could cause delivery attempts of an email to the wrong

smtpd require auth

2012-10-09 Thread Alexander Hall
Hi, I suddenly got a flood of incoming spam, and when I could not find any trace of them in the spamdb output, I suspected it was coming in on port 587, which I had configured with tls and enable auth I did not realize that that would allow anyone to send locally addressed mail to me that way,

Re: smtpd require auth

2012-10-09 Thread Alexander Hall
On 10/09/12 15:33, Gilles Chehade wrote: Argh, you should have talked to me first ... Both require ssl and require auth are implemented already ... I did not commit yet because we stabilized a release and decided to not add new features to it unless they are critical. This feature should be

Re: smtpd require auth

2012-10-09 Thread Alexander Hall
On 10/09/12 15:38, Gilles Chehade wrote: ok, discussed with eric, not critical but still very annoying so we'll commit the feature tonight. Ah, so something good came out of my diff anyway! :-) I was actually unsure whether this would get an OK or be postponed, so that could indeed have

Re: smtpd require auth

2012-10-09 Thread Alexander Hall
On 10/09/12 17:38, Gilles Chehade wrote: On Tue, Oct 09, 2012 at 09:29:25AM -0600, Bob Beck wrote: On Tue, Oct 9, 2012 at 9:25 AM, Gilles Chehade gil...@poolp.org wrote: I agree with you that people will probably not want port 587 without auth turned on so on a practical point of view, we

  1   2   3   >