Re: Removing syscall(2) from libc and kernel

2023-10-27 Thread Lucas Gabriel Vuotto
On Fri, Oct 27, 2023 at 09:36:25AM -0600, Theo de Raadt wrote: > Index: sys/arch/m88k/m88k/trap.c > === > RCS file: /cvs/src/sys/arch/m88k/m88k/trap.c,v > diff -u -p -u -r1.128 trap.c > --- sys/arch/m88k/m88k/trap.c 2 Aug 2023 06:14:46

Re: cwm: remove menu-ssh

2022-05-15 Thread Gabriel
Ok to remove. -- Gabriel Okan Demirmen writes: > Hi, > > I think we've (or at least I have) mused about this for a while; a > recent mail reminded me that this feature should go - a window manager > doesn't need to parse the ssh known_hosts file for a menu; there ar

Re: [patch] added cwm config property for hiding resize hints

2022-05-15 Thread Gabriel
Just tested this patch and confirm it works as expected. Is there any plan to add it to cwm? -- Gabriel

Re: OpenBSD Errata: July 25, 2021 (relayd)

2021-07-25 Thread Gabriel
Sebastian Benoit writes: > An errata patch for the relayd application layer gateway daemon has > been released for OpenBSD 6.9. > > relayd(8), when using the the http protocol strip filter directive or http > protocol macro expansion, processes format strings. > > Binary updates for the amd64, i3

gre(4): remove linkX from example

2017-11-30 Thread Lucas Gabriel Vuotto
Hi tech@, According rev 1.45, linkX in gre(4) is a deprecated style and isn't documented in ifconfig(8) (couldn't find it ever was, but I'm not to used to cvs so I couldn't search properly). This removes linkX from the example in the manpage. Cheers. Index: share/man/man4/gre.4 ===

Re: mg backup directory (bump)

2017-07-06 Thread Lucas Gabriel Vuotto
Bump. Emacs gets HOME from environment here. I think that getting it from pw entry is more correct, but I can make a patch to behave like emacs if needed. On 19/05/17 14:11, Lucas Gabriel Vuotto wrote: > Previous patch shall be ignored, as it was an ugly hack. Below is a patch > t

Re: mg backup directory

2017-06-07 Thread Lucas Gabriel Vuotto
bump because I forgot to CC florian@ On 26/05/17 18:11, Lucas Gabriel Vuotto wrote: On 26/05/17 12:38, Florian Obser wrote: On Fri, May 19, 2017 at 02:11:22PM -0300, Lucas Gabriel Vuotto wrote: Previous patch shall be ignored, as it was an ugly hack. Below is a patch that is simpler and

Re: mg backup directory

2017-05-26 Thread Lucas Gabriel Vuotto
On 26/05/17 12:38, Florian Obser wrote: On Fri, May 19, 2017 at 02:11:22PM -0300, Lucas Gabriel Vuotto wrote: Previous patch shall be ignored, as it was an ugly hack. Below is a patch that is simpler and fixes expandtilde instead, so it fixes the problem in other situations (writing files to

Re: mg backup directory

2017-05-19 Thread Lucas Gabriel Vuotto
user); if (pw != NULL) { plen = strlcpy(path, pw->pw_dir, sizeof(path)); if (plen == 0 || path[plen - 1] != '/') { On 13/05/17 01:32, Lucas Gabriel Vuotto wrote: Sorry, space got mangled in previous email. Index: fileio.c ==

Re: ksh(1): don't output invalid UTF-8 characters

2017-05-19 Thread Lucas Gabriel Vuotto
Hi, On 19/05/17 03:42, Anton Lindqvist wrote: > Hi, > I did submit this problem[1] earlier but with an incomplete analysis and > fix. Here's a second attempt. > > This does only occur when running ksh with emacs mode under tmux. How to > re-produce: > > 1. Run ksh under tmux. > > 2. Input the f

Re: mg backup directory

2017-05-12 Thread Lucas Gabriel Vuotto
"%s/.mg.d" #define_PATH_MG_STARTUP "%s/.mg" #define_PATH_MG_TERM "%s/.mg-%s" On 13/05/17 01:25, Lucas Gabriel Vuotto wrote: > Hi tech@, > > mg(1)'s backup-to-home-directory writes backup files to `~/.mg.d' > according

mg backup directory

2017-05-12 Thread Lucas Gabriel Vuotto
Hi tech@, mg(1)'s backup-to-home-directory writes backup files to `~/.mg.d' according to the manpage. In order to expand the tilde, it uses a custom function (expandtilde, fileio.c:700) which uses the pw entry for the user name returned by getlogin(2). This can lead to an undesired result if mg i

Re: signify and hardcoded 42 rounds (patch)

2017-03-05 Thread Gabriel Kihlman
Gabriel Kihlman writes: > I wanted to wait longer when creating new keys so here is a simple > diff to add an argument to be able to set rounds to something larger > than a hardcoded 42. ..and this time calling errx with the errstr from strtonum as one should. Index:

signify and hardcoded 42 rounds (patch)

2017-03-05 Thread Gabriel Kihlman
I wanted to wait longer when creating new keys so here is a simple diff to add an argument to be able to set rounds to something larger than a hardcoded 42. Below that it is another diff instead using a copy (slightly modified) of_bcrypt_autorounds() from libc (only ifndef VERIFYONLY). Index: si

Offer - PowerPC Mac Mini 1.24Ghz G4 1GB RAM

2016-07-26 Thread Gabriel Guzman
Hi tech@ - I have a Mac Mini that I'd like to donate to the project. If anyone who is working on the PowerPC port and is in need, please let me know. I will happily ship it to you. I'm looking to send it to a "real developer who does commits" Let me know, and thanks for the continued work on

Re: relaxing sysctl_proc_vmmap checks for debugging

2016-06-28 Thread Gabriel Kihlman
"Ted Unangst" writes: > > Thanks for reminding me to revisit this. I think the following diff is > sufficient. Still works fine for me, thanks. /gabriel > > > Index: kern_sysctl.c > ==

relaxing sysctl_proc_vmmap checks for debugging

2016-06-28 Thread Gabriel Kihlman
0007f7f s --wx ? sys 028K 0x00007f7fffff - 0x7f7f7000 s --wx ? (the protection bits are flipped, ignore...) Is there a better way? /gabriel

Re: ix(4) and "Unsupported SFP+ Module"

2014-12-05 Thread Gabriel Linder
On 12/05/14 13:08, Mike Belopuhov wrote: > On Fri, Dec 05, 2014 at 11:24 +0100, Gabriel Linder wrote: >> Hi, >> >> On a 5.6-release I have an ix card which refuses to work with unsupported >> SFP+ modules, saying this : ix0 at pci1 dev 0 function 0 "Intel 82

ix(4) and "Unsupported SFP+ Module"

2014-12-05 Thread Gabriel Linder
Hi, On a 5.6-release I have an ix card which refuses to work with unsupported SFP+ modules, saying this : ix0 at pci1 dev 0 function 0 "Intel 82599" rev 0x01Unsupported SFP+ Module. However, this seems to be an artificial limitation of the ix driver : the following diff (against sys.tar.gz as

relayd & redirects : forward [with synproxy] to check tcp

2014-05-28 Thread Gabriel Linder
It is sometimes desirable to enable synproxy when using relayd's redirects, this diff allow just that. In case it gets mangled : http://dargor.servebeer.com/~dargor/openbsd/relayd-forward-with-synproxy.diff ok ? Index: parse.y =

Sync pthread_set_name_np.3 with pthread_np.h

2014-03-06 Thread Gabriel Linder
Index: pthread_set_name_np.3 === RCS file: /cvs/src/lib/libpthread/man/pthread_set_name_np.3,v retrieving revision 1.5 diff -u -p -r1.5 pthread_set_name_np.3 --- pthread_set_name_np.3 5 Jun 2013 03:44:50 - 1.5 +++ pthre

Re: snmp client (aka "walk")

2013-10-04 Thread Gabriel Guzman
On 10/01, Reyk Floeter wrote: > Hi, > > I just committed a simple SNMP client implementation to snmpctl/snmpd. > You can use it as an in-tree alternative to net-snmp's > snmpwalk/snmpget. > > Examples: > $ snmpctl walk 127.0.0.1 > $ snmpctl walk printer.my.domain version 1 oid printerWorkingGroup

Re: Typos in net/bpf.h

2013-03-22 Thread Gabriel Linder
On 03/22/13 17:38, Theo de Raadt wrote: >> On 03/22/13 17:25, Philip Guenther wrote: >>> On Fri, Mar 22, 2013 at 7:53 AM, Gabriel Linder >>> wrote: >>>> - * bpf understands a program iff kernel_major == filter_major && >>>> + * bpf understa

Re: Typos in net/bpf.h

2013-03-22 Thread Gabriel Linder
On 03/22/13 17:25, Philip Guenther wrote: > On Fri, Mar 22, 2013 at 7:53 AM, Gabriel Linder wrote: >> - * bpf understands a program iff kernel_major == filter_major && >> + * bpf understands a program if kernel_major == filter_major && > Not a typo: "iff&qu

Typos in net/bpf.h

2013-03-22 Thread Gabriel Linder
While learning how to use BPF I fumbled on this, clarification is needed imho. ok ? Index: sys/net/bpf.h === RCS file: /cvs/src/sys/net/bpf.h,v retrieving revision 1.43 diff -u -r1.43 bpf.h --- sys/net/bpf.h26 Mar 2012 19:37:42 -

Re: Send hostname to remote host with syslogd

2013-02-08 Thread Gabriel Linder
On 02/07/13 17:38, Bob Beck wrote: > This looks correct to me. Does this diff have a chance to be committed then ? On Thu, Feb 7, 2013 at 5:08 AM, Markus Friedl wrote: >> fwiw, this is what i have in my tree for some time now: >> >> Index: syslogd.c >> ===

Re: Send hostname to remote host with syslogd

2013-02-06 Thread Gabriel Linder
On 02/01/13 15:30, Gabriel Linder wrote: > On 02/01/13 11:57, Stuart Henderson wrote: >> I'm a bit undecided as to whether this is really useful (I suppose >> having it _in addition_ to the IP address might be useful where >> there's a NAT between log source and dest

Re: Send hostname to remote host with syslogd

2013-02-01 Thread Gabriel Linder
On 02/01/13 11:57, Stuart Henderson wrote: From: "Gabriel Linder" To: tech@openbsd.org Sent: Wednesday, December 26, 2012 9:40:40 AM Subject: Send hostname to remote host with syslogd While playing with base syslogd and syslog-ng to have a unique loghost on my network, I noticed th

Re: Send hostname to remote host with syslogd

2013-02-01 Thread Gabriel Linder
sage - From: "Gabriel Linder" To: tech@openbsd.org Sent: Wednesday, December 26, 2012 9:40:40 AM Subject: Send hostname to remote host with syslogd While playing with base syslogd and syslog-ng to have a unique loghost on my network, I noticed that OpenBSD syslogd does not send

Send hostname to remote host with syslogd

2012-12-26 Thread Gabriel Linder
While playing with base syslogd and syslog-ng to have a unique loghost on my network, I noticed that OpenBSD syslogd does not send the hostname (while other daemons like rsyslog send it), so my loghost log the IP instead of the hostname. Is there a reason for this behaviour ? The diff below fi

Re: tar -J to extract xz archives

2012-05-30 Thread Gabriel Linder
On 05/30/12 07:53, Landry Breuil wrote: On Tue, May 29, 2012 at 09:19:49PM -0400, Ted Unangst wrote: On Tue, May 29, 2012 at 17:46, Gabriel Linder wrote: I see more and more tar.xz archives, and thought it would be nice to have tar able to extract them directly as with gzip/bzip2. -J is what

tar -J to extract xz archives

2012-05-29 Thread Gabriel Linder
I see more and more tar.xz archives, and thought it would be nice to have tar able to extract them directly as with gzip/bzip2. -J is what GNU and FreeBSD use, so I used it too. Based on what was done to add bzip2 support. In case my client mess up with tabulations, here is a real file : htt

Re: relayd and rdomain/prio defaults

2012-03-06 Thread Gabriel Linder
On 03/05/12 21:10, Erik Lax wrote: On 3/2/12 5:09 PM, Gabriel Linder wrote: Since 5.0 rules injected by relayd includes "on rdomain 0" and "prio 0", I guess that's not intended ? I think you're right. And if so, the same problem seem to exist for the ftp-proxy (f

relayd and rdomain/prio defaults

2012-03-02 Thread Gabriel Linder
Since 5.0 rules injected by relayd includes "on rdomain 0" and "prio 0", I guess that's not intended ? Index: pfe_filter.c === RCS file: /cvs/src/usr.sbin/relayd/pfe_filter.c,v retrieving revision 1.47 diff -u -r1.47 pfe_filter.c --

Fix two warnings in diffdir.c : edp1/edp2 may be used uninitialized

2011-11-18 Thread Gabriel Linder
Index: diffdir.c === RCS file: /cvs/src/usr.bin/diff/diffdir.c,v retrieving revision 1.40 diff -u -r1.40 diffdir.c --- diffdir.c14 Nov 2010 18:24:43 -1.40 +++ diffdir.c18 Nov 2011 10:57:54 - @@ -48,8 +48,8 @@ void

Re: alc(4) support for Atheros AR815x

2011-05-04 Thread Gabriel Linder
On 05/02/11 14:23, Edd Barrett wrote: On Mon, May 02, 2011 at 11:02:41AM +0100, Stuart Henderson wrote: On 2011/05/02 01:16, Edd Barrett wrote: On Sun, May 01, 2011 at 08:10:56PM +0100, Stuart Henderson wrote: On 2011/05/01 18:35, Edd Barrett wrote: I have acquired a netboot (packard bell dot

Re: History for bc(1)

2011-02-16 Thread Gabriel Linder
On 02/15/11 13:01, Otto Moerbeek wrote: sorry, in have a diff in my tree, but I see myself always ignoring it. I just almost never actually use the editing capabilities. It seems my 25yr finger memory is too strong. So I'm not a proper tester for this diff, other than it does not seem to cause a

Re: alc(4) support for Atheros AR815x

2011-02-15 Thread Gabriel Linder
On 01/25/11 11:24, Kevin Lo wrote: Hi, The following diff adds support for Atheros AR8151/AR8152 chipsets; mostly from FreeBSD. It also fixes an issue i386/6311. Tested on Acer AOD255E. Tried yesterday on EeePC 1005PX, some comments inline. @@ -515,6 +694,20 @@ alc_attach(struct device *pare

Re: History for bc(1)

2011-02-15 Thread Gabriel Linder
On 02/14/11 17:43, Christiano F. Haesbaert wrote: Any news on this ? The diff still apply on -current. If there are changes needed I can work on it, but I have no news.

Fix alc(4) watchdog timeouts and panics (new diff)

2011-01-31 Thread Gabriel Linder
After some comments made by Brad and Mike Belopuhov, here's a new diff. Tested on EeePC 1005PX. cf. http://marc.info/?l=openbsd-tech&m=129636716819943&w=2 Index: if_alcreg.h === RCS file: /cvs/openbsd/src/sys/dev/pci/if_alcreg.h,v re

Re: Fix alc(4) watchdog timeouts and panics

2011-01-31 Thread Gabriel Linder
On 01/30/11 06:04, Gabriel Linder wrote: This diff fix some problems on my EeePC 1005PX : - splassert failure when booting without a network cable - panic when unplugging a network cable - network does not come back when plugging a network cable - watchdog timeouts Mike Belopuhov found another

Re: alc0 panic and splassert: assertwaitok: want -1 have 1

2011-01-31 Thread Gabriel Linder
On 01/30/11 14:39, Mike Belopuhov wrote: hi, if you haven't fixed it yet, here's a diff. it also fixes a error/!error logic bug. could you please try it out? Thank you, I made a more complete diff fixing a few more problems http://marc.info/?l=openbsd-tech&m=129636716819943&w=2 - I missed th

Fix alc(4) watchdog timeouts and panics

2011-01-29 Thread Gabriel Linder
This diff fix some problems on my EeePC 1005PX : - splassert failure when booting without a network cable - panic when unplugging a network cable - network does not come back when plugging a network cable - watchdog timeouts Most of the fixes are coming from FreeBSD. if_alcreg.h had only typos. I

Re: alc0 panic and splassert: assertwaitok: want -1 have 1

2011-01-28 Thread Gabriel Linder
On 01/27/11 09:13, Gabriel Linder wrote: When booting 4.9-beta/amd64 without a network cable plugged, I get a lot of splassert failures. After changing kern.splassert to 3 I was able to get the following trace (get with dmesg after a reboot) : OpenBSD 4.9-beta (GENERIC.MP) #786: Tue Jan 25

Re: History for bc(1)

2010-08-17 Thread Gabriel Linder
On Fri, 13 Aug 2010 15:09:20 +0200 Gabriel Linder wrote: > On Fri, 13 Aug 2010 14:30:50 +0200 > Otto Moerbeek wrote: > > > Take a look at freebsd. They have added editline support to bc. If > > (big if) we're going to add command line editing and history, I'

Re: History for bc(1)

2010-08-13 Thread Gabriel Linder
On Fri, 13 Aug 2010 14:30:50 +0200 Otto Moerbeek wrote: > Take a look at freebsd. They have added editline support to bc. If > (big if) we're going to add command line editing and history, I'd > rather take that. I will take a look at their implementation then, thank you.

History for bc(1)

2010-08-13 Thread Gabriel Linder
This diff implements history for bc(1) using editline(3). History is not persistent, I can add this feature if needed. el_init with stderr should not be a problem for an interactive program, let me know otherwise. This is my first diff, so hints/advices/crucifixion are welcome :) Index: Makef

Re: ACPI C-States diff

2009-06-09 Thread Gabriel Kihlman
jor...@peereboom.us writes: > Sending out an initial attempt at implementing C-states for APCI CPUs. > The C-states are used to implement the CPU idle loop per CPU. > > Please send dmesgs of booting using this patch. Panics on a thinkpad t400 amd64 SMP I see this part of the boot log on my displ

Re: Please test this diff on as many acpi systems as possible

2009-06-08 Thread Gabriel Kihlman
t power states -cpu0: Enhanced SpeedStep 2261 MHz: speeds: 19200, 1600 MHz +cpu0: Enhanced SpeedStep 2261 MHz: speeds: 2267, 2266, 1600, 800 MHz /gabriel OpenBSD 4.5-current (GENERIC.MP) #2: Mon Jun 8 22:30:01 CEST 2009 g...@lapdog.kihlman.net:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem