Re: pppoe(4), add example for ipv6

2014-10-23 Thread Andres Perera
[What I'm pointing out below looks like a mistake regardless of the variables in scope.] On Wed, Oct 22, 2014 at 1:40 AM, Henning Brauer wrote: > * Chris Cappuccio [2014-10-22 01:11]: >> Stuart Henderson [st...@openbsd.org] wrote: >> > Any comments on the diff in this? >> > >> > > +#ifdef INET6

Re: Weird loop in ftp client

2013-11-24 Thread Andres Perera
On Sun, Nov 24, 2013 at 12:11 PM, sven falempin wrote: > On Sat, Nov 23, 2013 at 5:47 PM, Theo de Raadt >wrote: > > > > On 2013/11/23 14:39, sven falempin wrote: > > > > Hello, > > > > > > > > Another point of vue : > > > > Because curl is in base, what does ftp client add to the system ? > > > >

Re: Weird loop in ftp client

2013-11-24 Thread Andres Perera
On Sun, Nov 24, 2013 at 7:29 PM, sven falempin wrote: > > > On Sun, Nov 24, 2013 at 5:57 PM, Andres Perera wrote: >> >> >> >> >> On Sun, Nov 24, 2013 at 12:11 PM, sven falempin >> wrote: >>> >>> On Sat, Nov 23, 2013 at 5:47 PM,

Re: pax / tar exit code on truncated input

2014-04-04 Thread Andres Perera
On Fri, Apr 4, 2014 at 2:12 PM, Philip Guenther wrote: > On Fri, Apr 4, 2014 at 11:27 AM, Marco Pfatschbacher wrote: >> On Thu, Apr 03, 2014 at 05:19:45PM -0600, Theo de Raadt wrote: >>> Interesting. Can we take bath approaches? >> >> I don't see why we should not. >> >>> Is there a reason to no

Re: rs, jot: missing headers

2014-04-11 Thread Andres Perera
On Fri, Apr 11, 2014 at 7:02 PM, Ralph Siegler wrote: > On Thu, 10 Apr 2014 21:55:13 -0700, Philip Guenther wrote: > >> On Thu, Apr 10, 2014 at 7:14 PM, Ralph Siegler >> wrote: >>> On Thu, 14 Nov 2013 23:17:24 -0500, Eitan Adler wrote: I was looking through some OpenBSD code and noticed that

Re: rs, jot: missing headers

2014-04-11 Thread Andres Perera
On Fri, Apr 11, 2014 at 10:27 PM, Ralph Siegler wrote: > On Fri, 11 Apr 2014 19:27:03 -0430, Andres Perera wrote: > >> On Fri, Apr 11, 2014 at 7:02 PM, Ralph Siegler >> wrote: >>> On Thu, 10 Apr 2014 21:55:13 -0700, Philip Guenther wrote: >>> >>>>

Re: malloc in libssl/src/apps

2014-05-04 Thread Andres Perera
On Sun, May 4, 2014 at 5:00 PM, Alexander Hall wrote: > 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 m

Re: horribly slow fsck_ffs pass1 performance

2011-04-05 Thread Andres Perera
On Tue, Apr 5, 2011 at 7:06 AM, Janne Johansson wrote: >> /forcefsck and /fastboot have nothing to do with that >> they are not even administered by the fs >> > I wasn't trying to imply the filesystem is putting the files there, nor > reading them. Rather, those two files show that > "since there

Re: "no really, be quiet" mode for ping{,6}

2011-04-06 Thread Andres Perera
On Wed, Apr 6, 2011 at 6:30 AM, Peter Hessler wrote: > On 2011 Apr 06 (Wed) at 12:47:40 +0200 (+0200), David Vasek wrote: > :On Wed, 6 Apr 2011, Peter Hessler wrote: > : > :>Sometimes I want ping to be quiet. B Not quiet in the "only show me > :>headers" way that the original author thought was cu

Re: sed behavior

2011-06-15 Thread Andres Perera
that's not relevant to the example because $ matches the empty string at eol, not the character at eol (.$), which is openbsd sed's interpretation even in the case of certain regex standards that do not allow $ to be used as part of a | expression, the interpretation is faulty On Wed, Jun 15, 201

Re: fdisk geom fixes

2011-07-04 Thread Andres Perera
On Mon, Jul 4, 2011 at 7:31 PM, Kenneth R Westerback wrote: > On Mon, Jul 04, 2011 at 02:26:42PM -0700, andre...@zoho.com wrote: >> cmd.c: >> >> x86* maxhead should be 255, not 256 >> >> make geom less useless by using disklabel for cyl, if available > > geom is useless, period. Making it easier w

Re: fdisk geom fixes

2011-07-04 Thread Andres Perera
On Mon, Jul 4, 2011 at 8:56 PM, Kenneth R Westerback wrote: > The use of CHS should be hard and attempted only by > those who know all the rules already. which is made difficult by not being able to select a subset of cyls, since fdisk caps them at 1024 on amd64 note that geom was, and continues

Re: fdisk geom fixes

2011-07-04 Thread Andres Perera
On Mon, Jul 4, 2011 at 11:32 PM, Kenneth R Westerback wrote: > On Mon, Jul 04, 2011 at 09:38:37PM -0430, Andres Perera wrote: >> On Mon, Jul 4, 2011 at 8:56 PM, Kenneth R Westerback >> wrote: >> > The use of CHS should be hard and attempted only by >> > tho

Re: etc/rc.d/spamlogd needs pflog

2011-08-06 Thread Andres Perera
On Sat, Aug 6, 2011 at 7:11 AM, Stuart Henderson wrote: > Since pflog interface creation was moved to rc.d/pflogd, you can > no longer run spamlogd without also running pflogd. This diff copies > the interface creation code from pflogd (it doesn't hurt to create > pflog0 twice). > > This doesn't h

Re: dc(1) exp improvements

2012-11-06 Thread Andres Perera
On Tue, Nov 6, 2012 at 3:27 PM, Otto Moerbeek wrote: > Hi, > > And here's a diff to repair ^, whcih now produces correct results for > things like > > (dc)0.1 _1 ^p > or > (bc)0.1 ^ -1 > > The diff is against very current, so beware. i've lightly tested it against gnu bc and it works i d

Re: ##@!#@# gnu tools

2012-11-15 Thread Andres Perera
On Thu, Nov 15, 2012 at 1:13 PM, Marc Espie wrote: > On Thu, Nov 15, 2012 at 05:53:52PM +0100, Reyk Floeter wrote: >> For all the GNU people, here is how a Makefile for hello.c should look like: >> PROG= hello >> NOMAN= yes >> .include >> >> Yes, you're supposed to provide a man page hello.1 and

Re: upstream vendors and why they can be really harmful

2012-11-22 Thread Andres Perera
i'm not sure how using js for configuration files, as opposed to using a language commonly deployed for the same purpose, such as lua, presents an innate constraint on security. if i'm somehow expected to ignore how unlikely it is for the configuration vm to: a. intentionally have the ability of

Re: upstream vendors and why they can be really harmful

2012-11-22 Thread Andres Perera
On Thu, Nov 22, 2012 at 11:58 AM, Kevin Chadwick wrote: > On Thu, 22 Nov 2012 09:30:41 -0430 > Andres Perera wrote: > >> i'm not sure how using js for configuration files, as opposed to using >> a language commonly deployed for the same purpose, such as lua, >>

Re: upstream vendors and why they can be really harmful

2012-11-22 Thread Andres Perera
On Thu, Nov 22, 2012 at 1:52 PM, Kevin Chadwick wrote: > On Thu, 22 Nov 2012 13:27:46 -0430 > Andres Perera wrote: > >> but jit isn't irreparably interleaved with js >> > > The latest polkit actually depends on the javascript package. specifical

Re: upstream vendors and why they can be really harmful

2012-11-22 Thread Andres Perera
On Thu, Nov 22, 2012 at 2:53 PM, Kevin Chadwick wrote: > On Thu, 22 Nov 2012 14:18:59 -0430 > Andres Perera wrote: > >> there's still no tie-in to the privileges of the process, > > It still lets a process do something unintended. In fact getting a > browser to e

Re: upstream vendors and why they can be really harmful

2012-11-22 Thread Andres Perera
On Thu, Nov 22, 2012 at 11:41 PM, Marc Espie wrote: > > On Thu, Nov 22, 2012 at 01:27:46PM -0430, Andres Perera wrote: > > why would the runtime be attractive for rop? what configuration vm > > needs syscalls that would be attractive to an attacker that can change > > the

Re: hostname.if(5) clarification

2012-11-26 Thread Andres Perera
don't know about OP, but yesterday i was surprised when rtlabel had to be specified after inet i haven't fully researched the relationship between the two, but at least during boot's run of netstart, this is a case where order of lines and thus ifconfig commands do matter On Mon, Nov 26, 2012 at

Re: hostname.if(5) clarification

2012-11-26 Thread Andres Perera
On Mon, Nov 26, 2012 at 12:11 PM, Andres Perera wrote: > don't know about OP, but yesterday i was surprised when rtlabel had to > be specified after inet just double checked; s/after/before ifconfig(8) section on rtlabel bears no mention about the order before rearranging, lines

Re: ksh bad PS1 ascii octal to char conversion

2013-03-02 Thread Andres Perera
On Sat, Mar 02, 2013 at 03:08:44PM -0800, Philip Guenther wrote: > On Sat, 2 Mar 2013, Andres Perera wrote: > > On Sat, Mar 2, 2013 at 5:13 PM, Philip Guenther > > wrote: > ... > > > Hmm, this is actually changing two things: it's both fixing the problem > >

sudo documentation purports wrong loginclass functionality

2013-03-18 Thread Andres Perera
There are at least two instances in sudo documentation that lead to believe that `use_loginclass' and `sudo -c` behave differently than they do in the implementation WRT which of the target and calling users' loginclass gets applied. sudoers(5): 831 832 use_loginclassIf set, sud

Re: kern decrement

2013-03-19 Thread Andres Perera
On Tue, Mar 19, 2013 at 10:47 AM, Ted Unangst wrote: > Maybe we want, maybe we don't. Here's a check to prevent a counter > from going negative, which usually means an accounting mistake > somewhere. On the shortcomiing side, it only catches double > decrements, not missing decrements, so maybe it

Re: LC_CTYPE for spanish speaking countries

2013-03-20 Thread Andres Perera
On Wed, Mar 20, 2013 at 2:50 PM, Stefan Sperling wrote: > On Tue, Mar 19, 2013 at 06:44:59PM -0500, Vladimir Támara Patiño wrote: >> +#http://en.wikipedia.org/wiki/List_of_countries_where_Spanish_is_an_official_language >> +ES_COUNTRIES= AR BO CH CO CR CU DO EC ES GQ GT HN MX NI PA PE PR PY SV UY

Re: LC_CTYPE for spanish speaking countries

2013-03-22 Thread Andres Perera
Instead of perpetuating the idea that the number of locales is a precious resource tied to directory entries, the routines could parse the user supplied string instead of working with a table of all possible permutations of ll_CC.CTYPE. This means simplification for the build system, simplification

Re: LC_CTYPE for spanish speaking countries

2013-03-22 Thread Andres Perera
On Fri, Mar 22, 2013 at 7:12 AM, Stefan Sperling wrote: > On Fri, Mar 22, 2013 at 06:54:24AM -0430, Andres Perera wrote: >> Instead of perpetuating the idea that the number of locales is a >> precious resource tied to directory entries, the routines could parse >> the user su

Re: [patch] change identd options to match advice elsewhere

2013-03-23 Thread Andres Perera
the current version of src/etc/inetd.conf is 1.61. yours is an old one

Re: [patch] tic man page file path error

2013-03-23 Thread Andres Perera
$ ident src/lib/libcurses/tinfo/read_bsd_terminfo.c src/lib/libcurses/tinfo/read_bsd_terminfo.c: $OpenBSD: read_bsd_terminfo.c,v 1.18 2010/01/12 23:22:06 nicm Exp $ $ grep -B2 -nw _PATH_TERMINFO src/lib/libcurses/tinfo/read_bsd_terminfo.c 22-#include 23- 24:#define _PATH_TERMINFO "/usr/

Re: [patch] tic man page file path error

2013-03-23 Thread Andres Perera
i see now that src/lib/libcurses has other defines for tic, i apologize to both

src `make obj` wrongly uses dirs instead of symlinks

2013-04-22 Thread Andres Perera
When BSDSRCDIR is set through /etc/mk.conf or ${MAKECONF} to something other than the default of /usr/src, make obj won't use symlinks for `obj' in the affected directories. Index: distrib/luna88k/Makefile.inc === RCS file: /cvs/src/d

Re: switch /usr/share/locale to different layout

2013-05-30 Thread Andres Perera
On Thu, May 30, 2013 at 3:35 PM, Stefan Sperling wrote: > I've received several requests for adding new locale names, > both on this list, and off-list, from several people. > > I've been trying to find a way to keep /usr/share/locale reasonably > clean while also allowing people to use their pref

Re: switch /usr/share/locale to different layout

2013-05-30 Thread Andres Perera
On Thu, May 30, 2013 at 11:49 PM, Stefan Sperling wrote: > On Thu, May 30, 2013 at 05:18:48PM -0430, Andres Perera wrote: >> As I mentioned, there's code that expects the prior layout, and that's >> confusing. >> >> on src/lib/libc/locale/setlocale.c, load_loc

Re: Mention -I option in cvs update synopsis

2013-08-21 Thread Andres Perera
-l for cvs update is a boolean option that doesn't take an operand On Wed, Aug 21, 2013 at 5:38 PM, Vadim Zhukov wrote: > This adds a mention of "-I name" option for "cvs update" command in > its synopsis. Okay? > > -- > WBR, > Vadim Zhukov > > > Index: man/cvs.1 > =

Re: Ralink RT3090 should work now

2010-10-24 Thread Andres Perera
On Sat, Oct 23, 2010 at 10:02 AM, Damien Bergamini wrote: > I finally found some time to finish RT3090 support in ral(4). > If you have such a device, please test the driver in -current > and report success/failure directly to me. Haven't tested it yet, but thanks a ton anyway. Will report as so

Re: Ralink RT3090 should work now

2010-10-29 Thread Andres Perera
On Sun, Oct 24, 2010 at 11:14 AM, Andres Perera wrote: > On Sat, Oct 23, 2010 at 10:02 AM, Damien Bergamini > wrote: >> I finally found some time to finish RT3090 support in ral(4). >> If you have such a device, please test the driver in -current >> and report succes

less stupid kshrc example

2010-10-29 Thread Andres Perera
Defining a bunch of functions just to update the term title is ridiculous. --- src/etc/ksh.kshrc.orig Fri Oct 29 21:40:51 2010 +++ src/etc/ksh.kshrc Fri Oct 29 21:51:48 2010 @@ -45,16 +45,7 @@ HOSTNAME=${HOSTNAME:-`uname -n`} HOST=${HOSTNAME%%.*} - PROMPT="$USER:!$PS

Re: less stupid kshrc example

2010-10-31 Thread Andres Perera
2010-10-30 14:34 +0100, Stuart Henderson: > > On 2010/10/29 21:55, Andres Perera wrote: > > Defining a bunch of functions just to update the term title is > > ridiculous. > > I use this. Also it's a good way to find bugs in cwm :) Not sure how it would help, but

Re: Allegations regarding OpenBSD IPSEC

2011-01-03 Thread Andres Perera
On Tue, Dec 14, 2010 at 5:54 PM, Theo de Raadt wrote: > I have received a mail regarding the early development of the OpenBSD > IPSEC stack. B It is alleged that some ex-developers (and the company > they worked for) accepted US government money to put backdoors into > our network stack, in partic

Re: [patch] -H flag for grep.

2011-02-21 Thread Andres Perera
On Mon, Feb 21, 2011 at 7:01 PM, Philip Guenther wrote: > On Mon, Feb 21, 2011 at 2:30 PM, Fred Crowson wrote: >> On 02/21/11 15:54, Alexander Schrijver wrote: > ... >>> grep(1) only prints the filename when it receives more then 1 filename as >>> arguments. Thus, when you do this: >>> >>> $ find

Re: [patch] -H flag for grep.

2011-02-22 Thread Andres Perera
On Tue, Feb 22, 2011 at 12:51 PM, Pascal Stumpf wrote: > On Tue, Feb 22, 2011 at 12:52:24PM -0300, Iruatc Souza wrote: >> On Tue, Feb 22, 2011 at 6:08 AM, patrick keshishian >> wrote: >> > my that's awkward. >> > >> >> if you can't combine unix tools, you should be looking at perl. >> >> iru >>

printf(1) null escape

2011-04-02 Thread Andres Perera
print_escape returns 1 even if it's on null, and the rest of the prog just ignores null literals $ env -i sh -c '/usr/bin/printf \\' printf: unknown escape sequence `\' PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin diff -u -r1.17 printf.c --- printf.c27 Oct 2009 23:59:41 -0

Re: printf(1) null escape

2011-04-02 Thread Andres Perera
#include #define CMD "/usr/bin/printf" int main(void) { execle(CMD, CMD, "\\", NULL, (char *[]){"BROKEN", NULL}); } On Sat, Apr 2, 2011 at 4:48 AM, Andres Perera wrote: > > print_escape returns 1 even if it's on null, and the rest of the > pro

Re: horribly slow fsck_ffs pass1 performance

2011-04-03 Thread Andres Perera
On Sun, Apr 3, 2011 at 4:21 AM, Janne Johansson wrote: > 2011/4/2 Benny Lofgren > >> >> I've noticed that some (all?) linux systems do uncalled-for file system >> checks at boot if no check have been made recently, but I've never >> understood this practice. It must mean they don't trust their ow

Re: -not for find(1)

2012-02-27 Thread Andres Perera
linux does worth pointing out that some tests in old firefox ports (maybe still there) failed because the lack of -not On Mon, Feb 27, 2012 at 3:01 PM, Ted Unangst wrote: > On Mon, Feb 27, 2012, Steffen Daode Nurpmeso wrote: >> this patch adds the -not operator to find(1). >> I personally always

Re: -not for find(1)

2012-02-27 Thread Andres Perera
On Mon, Feb 27, 2012 at 3:36 PM, Landry Breuil wrote: > On Mon, Feb 27, 2012 at 03:24:05PM -0430, Andres Perera wrote: >> linux does >> >> worth pointing out that some tests in old firefox ports (maybe still >> there) failed because the lack of -not > &g

Re: cwm tiling

2012-06-08 Thread Andres Perera
tiling is only useful for text applications for that i use tmux On Sun, Jun 3, 2012 at 12:37 PM, Alexander Polakov wrote: > I'd like to start a discussion about adding tiling to cwm with > these two diffs. > > First diff adds a helper function to get the area of the screen. > I don't have a seco

Re: tmux and login shells

2012-06-20 Thread Andres Perera
i agree. also disliked loginShell in xresources, but that's very easy to alter would be nice to hear an explanation from the author(s) of tmux about always perusing a login shell

Re: Hibernate support

2012-07-11 Thread Andres Perera
nice would it be feasible to also compress kernel dumps once the compression logic is in place for hibernation? On Wed, Jul 11, 2012 at 11:41 AM, Mike Larkin wrote: > Hibernate support (suspend-to-disk) will be shortly enabled for i386 + wd > machines. > > Some FAQs, before I commit the change t