Re: Awk split()/array bug in 7.5

2024-05-30 Thread Todd C . Miller
On Thu, 30 May 2024 21:42:08 +0100, Jeff Penn wrote: > I spotted the following issue, which is also present in FreeBSD. > > $ awk -V > awk version 20240122 > $ awk 'BEGIN {split("A B C", ABC, " ");for (x in ABC) {print x}}' > 2 > 3 > 1 This is not a bug. An awk associative array is effectively

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-15 Thread Todd C . Miller
On Mon, 15 Apr 2024 14:17:10 +0200, =?utf-8?B?0KHRgtGA0LDRhdC40ZrQsCDQoNCw0LTQu NGb?= wrote: > Just to clarify, this particular instance of this issue seems to be related t > o > terminfo. > > In general, as I stated earlier, the log message > > ... [program_name]: vfprintf %s NULL in

Re: OpenBSD 7.5 - relayd -> vaultwarden - websockets payload not working

2024-04-08 Thread Todd C . Miller
It's certainly possible that some of the relayd hardening changes are to blame. Would you be able to rebuild relayd with some of those commits reverted to see if one of them is to blame? - todd

Re: Security questions: Login spoofing, X11 keylogging, and sandboxed apps

2024-03-31 Thread Todd C . Miller
This thread is now closed, please don't try to continue it. - todd

Re: How to exit cu?

2024-03-29 Thread Todd C . Miller
On Fri, 29 Mar 2024 12:35:18 +0800, Sadeep Madurange wrote: > I managed to get it working. I needed to press Enter, press ~ (and > release), then press Ctrl and D keys at the same time. Thank you. This is because the tilde escapes only work on the first character of a line. The same is true of

Re: DMARC/DKIM and OpenBSD Mailinglists

2024-03-22 Thread Todd C . Miller
On Fri, 22 Mar 2024 08:16:22 -, Stuart Henderson wrote: > I've got to say, I find the From rewrites less annoying than not > scrubbing MIME parts, though I'd prefer if Reply-To was set (to > list+sender, leaving any Mail-Followup-To in place). Many lists have > done this (often for all

Re: replying to mailing list message after subscribing

2024-03-15 Thread Todd C . Miller
On Fri, 15 Mar 2024 18:57:29 +0100, Evan Sherwood wrote: > Is that something you can do because you're a list administrator or > something? Still wondering if there is a way to do this without asking > someone to resend an email. Yes, it is something I can do because I'm a list administrator.

Re: replying to mailing list message after subscribing

2024-03-15 Thread Todd C . Miller
On Fri, 15 Mar 2024 18:19:28 +0100, Evan Sherwood wrote: > I sent a message to this list earlier from a ProtonMail account, and > none of the replies have arrived (not even in Junk), even though I see > there are replies via the web archive... so I don't have a message to > reply to. The mailing

Re: DMARC/DKIM and OpenBSD Mailinglists

2024-03-15 Thread Todd C . Miller
On Wed, 13 Mar 2024 11:54:14 -0600, Todd C. Miller wrote: > I've just added support to our majordomo for rewriting the From: > header when the sender's domain has a DMARC policy. Messages from > domains using DMARC will now have a From: header like: > > From: "

Re: DMARC/DKIM and OpenBSD Mailinglists

2024-03-13 Thread Todd C . Miller
I've just added support to our majordomo for rewriting the From: header when the sender's domain has a DMARC policy. Messages from domains using DMARC will now have a From: header like: From: "John Connor via misc" and the original From: address is preserved in the X-Original-From: header

Re: files are going missing

2024-03-11 Thread Todd C . Miller
On Mon, 11 Mar 2024 18:37:04 -, beecdadd...@danwin1210.de wrote: > sometimes, but I said other files are not deleted, files in same path > folder as the file that was deleted > so /tmp/folder/video got deleted, but /tmp/folder/jsonfile did not get > deleted > same with home directory I think

Re: Asynchronous write()/send()?

2024-01-23 Thread Todd C . Miller
On Tue, 23 Jan 2024 22:31:25 +, illegalcod...@proton.me wrote: > I'm writing a program that uses sockets, and am facing a problem where I thin > k some threads block on a send() forever. I thought I could solve this by usi > ng an asynchronous write, and setting a timeout, but I cannot find

Re: GENERIC.MP#1600 last snapshot cvs cant create tmp subdir

2024-01-17 Thread Todd C . Miller
On Wed, 17 Jan 2024 11:11:36 -0500, "Sven F." wrote: > well i tried anoncvs.spacehopper.org after the fail and then > anoncvs.comstyle.com > ( default one is in the trace, is "anon...@obsdacvs.cs.toronto.edu:/cvs" ) I can confirm the problem with obsdacvs.cs.toronto.edu but other servers are

Re: GENERIC.MP#1600 last snapshot cvs cant create tmp subdir

2024-01-17 Thread Todd C . Miller
That looks like a problem on the cvs server, not the client. What cvs server are you trying to checkout from? - todd

Re: unbound resolving 10.in-addr.arpa

2023-12-14 Thread Todd C . Miller
On Thu, 14 Dec 2023 12:05:24 -0800, "Lyndon Nerenberg (VE7TFX/VE6BBM)" wrote: > I am trying to get unbound to serve up reverse DNS for our internal > 1918 address space. I have been going hammer and tongs at unbound.conf > to try to make it forward requests for '*.10.in-addr.arpa.' to our > two

Re: /var/unbound/db/root.key not world-readable, unbound fails to start

2023-12-09 Thread Todd C . Miller
The mode on /var/unbound/db/root.key is influenced by the umask. If you restart unbound from a shell with umask set to 077, /var/unbound/db/root.key will be mode 0600. If the the umask is 022, the /var/unbound/db/root.key will be mode 0644. By default, /etc/login.conf has umask set to 022. Is

Re: include leap-seconds.list?

2023-11-17 Thread Todd C . Miller
On Fri, 17 Nov 2023 19:23:32 +0100, "Lorenz (xha)" wrote: > i am doing a port of the hare programming language[1] to OpenBSD and have > a question regarding the zoneinfo that is packaged with OpenBSD: can > leap-seconds.list be packged at /usr/share/zoneinfo/leap-seconds.list? > it is a

Re: Smtpd is not adding message-id

2023-10-09 Thread Todd C . Miller
On Mon, 09 Oct 2023 19:32:50 +0200, Nicolas Goy wrote: > I am hitting this issue with some go based process that send emails: > > https://github.com/OpenSMTPD/OpenSMTPD/issues/1068 > > Basically the client is not putting any Message-Id header and smtpd is > not adding it when sending the email.

Re: Newbie question

2023-10-05 Thread Todd C . Miller
On Thu, 05 Oct 2023 13:07:02 -0300, Ronny Machado wrote: > Every mail I post, Majordomo asks for a confirmation...Is this normal? > Am I doing something wrong??? Non-subscribers must confirm their posts. This has almost entirely removed spam from the lists. If you don't want to confirm each

Re: Recognition Of My Wireless Network Device

2023-08-07 Thread Todd C . Miller
Unfortunately, no OpenBSD driver for the Broadcom BCM4313 exists. The bwfm driver support Broadcom "FullMAC" chips but the BCM4313 is a "SoftMAC" chip and would need a different driver. There is a driver for this chip in Linux (brcmsmac) so it might be possible for someone to write an OpenBSD

Re: program compiled with clang from base runs 4 times slower than compiled with gcc-11.2.0p6 from ports

2023-06-04 Thread Todd C . Miller
Take a look at the clang-local man page, it documents the difference between the OpenBSD base clang and stock llvm. You can try disabling some of the options to find which one (or combination of options) is causing the slowdown. I would try building with -fno-stack-protector and -mno-retpoline

Re: mail command - change "from address" for Charlie Root

2023-05-06 Thread Todd C . Miller
On Sat, 06 May 2023 10:03:45 +1000, Nino Sidoti wrote: > I am trying to work out how to change the “From address” for when the daily o > utput reports are run. I want to use a real email address rather than the def > ault of Charlie Root “root@hostname”. > > I have tried to use a /root/.mailrc

Re: Can't login after upgrading to 7.3

2023-04-11 Thread Todd C . Miller
On Tue, 11 Apr 2023 17:55:52 -0600, Nathan Gilbert wrote: > I seem to stuck in a double bind, my wm needs to be recompiled, but also my s > hell (fish) is not in /etc/shells now and I can’t log in on the text console > either (I changed my root users shell to fish too.) > > I may have to chalk

Re: gdb segfaults setting breakpoint on a Rust test

2023-03-24 Thread Todd C . Miller
On Fri, 24 Mar 2023 13:10:08 -0600, "Luke A. Call" wrote: > Hi. When I run this on the binary of a test in my Rust > application, then run these commands in gdb, I get the following output > which ends with Segmentation Fault: The in-tree gdb is old, you should try the egdb package instead. -

Re: Fwd: snapshot sysupgrade, /pub/OpenBSD/7.3/packages/amd64/: no such dir

2023-03-21 Thread Todd C . Miller
On Tue, 21 Mar 2023 17:22:09 +0100, u...@mailo.com wrote: > Did snapshot sysupgrade > > On reboot in tty0: > syspatch: Error retrieving https://mirror.ihost.md/pub/OpenBSD/7.3/packages/a > md64/SHA256.sig: 404 not found > > Issuing pkg_add -u: >

Re: disk integrity checking

2023-02-22 Thread Todd C . Miller
On Wed, 22 Feb 2023 07:52:11 -0500, Nick Holland wrote: > So...I tried it against disks with mounted file systems and > softraid partitions on them. > > It...seems to work. I did have one laptop with a softraid > encrypted drive that gave a nice, clear "Input/output error", > but I can't

Re: scp to an unwritable filesystem - err msg

2023-02-16 Thread Todd C . Miller
The problem is that the error message has to be transferred from the remote end and there are a limited number of status messages. These are defined by the (draft) RFC for the protocol. OpenSSH supports the following: SSH_FX_OK0 SSH_FX_EOF

Re: crontab and /usr/local/{,s}bin

2023-02-14 Thread Todd C . Miller
The default root crontab on OpenBSD sets a more limited PATH: PATH=/bin:/sbin:/usr/bin:/usr/sbin Perhaps that is what you are talking about? We might want to consider removing PATH from root's crontab and just use the value from login.conf. - todd

Re: crontab and /usr/local/{,s}bin

2023-02-14 Thread Todd C . Miller
On Tue, 14 Feb 2023 23:45:29 +0100, "Thomas L." wrote: > what is the reason that /usr/local/{,s}bin is not in PATH in crontab? > this seems to be the case on all unix-like systems and it regularly > bites people. sometimes someone says it's for security w/o being > able to tell what is being

Re: Weirdness with du/df/my brain (latter more likely)

2023-01-22 Thread Todd C . Miller
On Sun, 22 Jan 2023 21:06:29 +, Steve Fairhead wrote: > I was cloning a server with rsync in preparation for a major upgrade > (elderly OpenBSD to 7.2). I noticed that the home partition usage was a > good deal greater on the new machine than the old (as seen by df). > > After a lot of

Re: smtpd.comf: '... reject "message"' fails

2022-10-21 Thread Todd C . Miller
On Fri, 21 Oct 2022 15:58:54 -, Stuart Henderson wrote: > (For those that don't know, it seems that T-Online.de block incoming > email from most IPs by default and anyone wanting to send them mail > has to explicitly contact them to ask permissions, and they make you > jump through hoops

Re: readpassphrase(3) buffer needs explicit_bzero(3) on error?

2022-09-28 Thread Todd C . Miller
On Wed, 28 Sep 2022 15:49:08 +0200, Alejandro Colomar wrote: > I'd like to clarify if it's necessary to clear the buffer in the case > that the function failed. Most errors seem to be clearly triggered > before the first byte is written to the buffer: EINVAL, EIO, EMFILE, > ENFILE, ENOTTY. > >

Re: whither struct __kvm?

2022-09-11 Thread Todd C . Miller
On Fri, 09 Sep 2022 20:22:38 -0700, "Lyndon Nerenberg (VE7TFX/VE6BBM)" wrote: > The first declaration in is: > > typedef struct __kvm kvm_t; > > and yet 'grep -r __kvm /usr/include /sys' returns only the above > line. What am I missing? It is an opaque type that is only passed as a pointer

Re: [Need help about bsd_auth.h/ question with Rust]

2022-08-01 Thread Todd C . Miller
On Mon, 01 Aug 2022 17:20:30 +0200, Bilal Emohmadian wrote: > I'm a new user of OpenBSD, trying to port KDE5 > (Plasma/Workspace/KWin/KScreenLocker) with wayland v1.19.0 in /usr/ports/ > on OpenBSD 7.2-beta. > > . Can you explain how work the typedef struct authsession_t ? (Because i > can't

Re: serial console works only if system is booted from it

2022-07-28 Thread Todd C . Miller
On Thu, 28 Jul 2022 15:11:58 -0500, Andrew Daugherity wrote: > This is probably worth a mention in the ttys(5) man page. It's one of > those things that once you've worked through it, you know, but it's > not at all obvious that HUP-ing init applies changes from every other > column but NOT any

Re: serial console works only if system is booted from it

2022-07-25 Thread Todd C . Miller
On Sun, 24 Jul 2022 23:50:11 -0700, Kastus Shchuka wrote: > Apparently, restarting getty on tty00 was not enough. > After reboot, I got login prompt on tty00 line. Running "ttyflags -a" as root would probably also fix it without the need for a reboot. - todd

Re: Getting archived mailing list mail with majordomo

2022-06-24 Thread Todd C . Miller
On Fri, 24 Jun 2022 12:43:56 -0400, Isaac Meerwarth wrote: > Is there an official repository for browsing mailing list archives? > marc.info seems reputable but unofficial. > > Unfortunately, there isn't currently a way to download the > > archives in mailbox format, which is probably what you

Re: Getting archived mailing list mail with majordomo

2022-06-24 Thread Todd C . Miller
On Fri, 24 Jun 2022 12:18:46 -0400, Isaac Meerwarth wrote: > I've been trying to retrieve archived mailing list mail.  I tried > sending "archive-get misc 101001" to majord...@openbsd.org but my > request is denied. > > I haven't found any remedies google-dorking marc.info.  Ideally, I'd >

Re: smtpd

2022-06-08 Thread Todd C . Miller
On Wed, 08 Jun 2022 08:16:20 -0700, latin...@vcn.bc.ca wrote: > Hello misc > > Could somebody please tell me what cert is smtpd refering to? > > smtpd[11054]: 106b2cfae48c5616 mta cert-check result="unverified" This is probably a warning that the remote side of the connection is using a

Re: Cron running at 99% CPU for seemingly no reason

2022-05-15 Thread Todd C . Miller
On Sun, 15 May 2022 16:02:03 +0200, Hrvoje Popovski wrote: > I know how to rebuild cron > > cd /usr/src/usr.sbin/cron/ > make obj && make depend && make && make install > > but i don't know how to enabled debug symbols .. Easiest would be to do: cd /usr/src/usr.sbin/cron/ make obj && make

Re: Cron running at 99% CPU for seemingly no reason

2022-05-15 Thread Todd C . Miller
On Sun, 15 May 2022 14:29:28 +0200, Hrvoje Popovski wrote: > I'm seeing same as Stephan on few servers in lab. > I've killed cron and did ktrace -i cron. Is this ok? > In attachment you can find kdump -f ktrace.out output. That's very odd. It looks like cron parses root's crontab and then

Re: dmesg - cpu, smt, core, package

2022-02-10 Thread Todd C . Miller
On Thu, 10 Feb 2022 08:46:37 +, Stuart Henderson wrote: > The numbers come from what's reported by the relevant CPUID instruction, > the only one actually used by OpenBSD is smt to disable all but one > thread in a core, otherwise they're just for information. > > I'm not sure the reason for

Re: type checking/signalling shell and utilities?

2021-11-17 Thread Todd C . Miller
On Thu, 18 Nov 2021 01:30:25 +1100, Reuben ua =?UTF-8?B?QnLDrcSh?= wrote: > Does anyone know of any shell and utilities where, for example, if > > -rf > > is a file name, the rm utility will understand so, and not think it is > a controlling flag (ugh! in-band signalling)? One where an

Re: cron sh script fork

2021-11-15 Thread Todd C . Miller
On Mon, 15 Nov 2021 20:13:01 +0300, misc@abrakadabra.systems wrote: > [/opt/bin]$ cat check.sh > #!/bin/sh > > _ret=$(ps aux | grep sleeploop.sh | grep -v grep | awk '{print $2}') > test -z ${_ret} && /opt/bin/sleeploop.sh & By default, ps uses 80 columns so the information is probably being cut

Re: Can't figure out what's taking up space on /

2021-08-04 Thread Todd C . Miller
On Wed, 04 Aug 2021 13:32:54 -0700, Greg Thomas wrote: > I'm at a loss, I booted in single user mode, ran fsck on /dev/sd0a and it > shows clean. I still have a large discrepancy between df and du. Did you verify that nothing was hiding under the mount points? For example, when booted in

Re: WireGuard host crashes roughly every week

2021-07-30 Thread Todd C . Miller
On Thu, 29 Jul 2021 20:09:12 -0500, "Matt P." wrote: > I have an OpenBSD box that breaks after a week or so of running. All network > traffic stops reaching the box. If I look at the screen or serial output, I c > an get the "login:" prompt, and when I enter my name I get prompted for a pas >

Re: style.9 typos

2021-07-15 Thread Todd C . Miller
You are expected to know that ^I (control-I) is the tab character. Using ^I instead of a literal tab character in the manual was supposed to make it clear that this is a tab and not a series of spaces but maybe it is not so obvious... - todd

Re: while do done

2021-07-02 Thread Todd C . Miller
On Fri, 02 Jul 2021 14:16:20 +1000, Reuben ua =?UTF-8?Q?Br=C3=AD=C4=A1?= wrote: > you CAN interrupt > > while do sleep 0; done > > there is no need for exit, and it doesnt fix > > while do done > > or > > while :; do :; done > > if your shell needs something to not do.

Re: C style in OpenBSD

2021-06-30 Thread Todd C . Miller
The reason to a style guide is not that one style is inherently better than another. It is because consistency makes the code easier to read for anyone familiar with that style. Part of that means using common idioms that are immediately recognizable by someone familiar with the style. This

Re: PPPoE mtu overwrites/ignores

2021-04-25 Thread Todd C . Miller
Note that pppoe caches the MTU value of the parent device (em0 in this case) so if you increased the MTU of em0 after pppoe0 has been configured it probably didn't have an effect. You can tell this is what happened by ifconfig failing with an invalid argument error. You can also check your

Re: Bufferbloat, FQ-CoDel, and performance

2021-02-23 Thread Todd C . Miller
On Tue, 23 Feb 2021 11:29:00 +0100, Stefan Sperling wrote: > I've noticed a similar effect on a slower link (VDSL with 50 down/ 10 up). > In this case the VDSL modem presents an Ethernet switch, so there is no > pppoe or vlan involved in the box that runs pf. > > As soon as I enable this example

Re: Shared memory segments are note removed after process exit

2021-02-05 Thread Todd C . Miller
On Sat, 06 Feb 2021 01:43:09 +, Chris Narkiewicz wrote: > When I check ipcs, I see a lot of shm segments: > > # ipcs | grep _x11 | grep wc -l > 137 > > Both processes are dead at this stage, so I'm not sure why those shm > segments are not collected? This is expected behavior. Shared memory

Re: Best way to increase openfiles-max and -cur for NGINX/PHP?

2021-01-16 Thread Todd C . Miller
On Sat, 16 Jan 2021 18:05:57 +0100, Unicorn wrote: > 2021/01/16 13:40:45 [alert] 68769#0: *1 socket() failed (24: Too many > open files) while connecting to upstream, client: 123.45.67.89, > server: cloud.mydomainhere.tld, request: "GET /core/preview?blah=1 > HTTP/2.0", upstream:

Re: M2 SSD in a PCI-E adapter

2021-01-08 Thread Todd C . Miller
On Fri, 08 Jan 2021 16:19:02 +0100, Jan Stary wrote: > I know the disk itself works: this is the disk plugged into > an M.2 slot in a Dell Latitude E5570 (full dmesg below): > sd0 at scsibus1 targ 0 lun 0: naa.5001b448b85325 > 30 > sd0: 238475MB, 512 bytes/sector, 488397168 sectors, thin That

Re: adding user to a group

2021-01-08 Thread Todd C . Miller
On Fri, 08 Jan 2021 16:21:08 +0100, Rudolf Sykora wrote: > I tried to add myself to the "dialer" group: > > #usermod -G dialer ruda > > But when I write > > $groups > > in a terminal I still do not see the new group. Not even if I open a new logi > n > shell (by writing "ksh -l"). However, when I

Re: Dissing Misks

2020-12-22 Thread Todd C . Miller
On Tue, 22 Dec 2020 17:30:08 -0700, Duncan Patton a Campbell wrote: > I've added two identical 4TB disks to my system to set up a duald RAID. > > When I boot, they come up as > > sd2 at scsibus1 targ 2 lun 0: naa.50014ee268199 > 5d6 > sd2: 3815447MB, 512 bytes/sector, 7814037168 sectors > >

Re: httpd location statement

2020-12-11 Thread Todd C . Miller
On Fri, 11 Dec 2020 09:54:43 +0200, Alexey Vatchenko wrote: > Sorry, still don’t understand how captures can help in this case. > In my understanding, it lacks "OR” to avoid duplicating identical > location blocks. Sorry, I misremembered. You are correct that lua patterns don't support

Re: httpd location statement

2020-12-10 Thread Todd C . Miller
On Thu, 10 Dec 2020 19:24:20 +0200, Alexey Vatchenko wrote: > I’m migrating from ancient server with OpenBSD’s apache1 to 6.8 OpenBSD’s htt > pd. > In my configuration I use Handler for .html, .htm, .css, .js and 4 more exten > sions. > I’ve found a way to configure it for one extension and it

Re: gcc: error trying to exec 'cc1': execvp: no such file or directory

2020-11-19 Thread Todd C . Miller
On Thu, 19 Nov 2020 22:07:33 +, Roderick wrote: > g++, gcc and gcov in /bin are from Apr 13, 2019. The rest are from > Oct 5, 2020. That explains your problem. The upgrade would have removed any obsolete /usr/lib/gcc-lib/amd64-unknown-openbsd* directory which the old gcc binaries require.

Re: uvn_flush: WARNING: changes to page may be lost

2020-11-11 Thread Todd C . Miller
On Wed, 11 Nov 2020 10:20:41 +0100, Jan Stary wrote: > This is current/amd64 on an APU2 (dmesg below). > It seems that after every sysupgrade, > there is a storm of messages like these: > > uvn_flush: obj=0x0, offset=0x7c2. error during pageout. > uvn_flush: WARNING: changes to

Re: Set environment variable for non-interactive shell

2020-11-06 Thread Todd C . Miller
Typically, this kind of thing is done in /etc/login.conf. - todd

Re: filters in OpenBSD in printing

2020-10-20 Thread Todd C . Miller
On Mon, 19 Oct 2020 21:19:26 -0600, "Raymond, David" wrote: > I tried putting a filter that drives an HP Deskjet printer (works with > lprng on linux) as an output filter in printcap and it didn't work. > Would it be more proper to put it as an input filter? I am still on > version 6.7 of the

Re: time_t

2020-10-05 Thread Todd C . Miller
On Mon, 05 Oct 2020 15:16:24 -, Roderick wrote: > The result of time() has type time_t and we know what kind of number > goes there: seconds since 0 hours, 0 minutes, 0 seconds, January 1, > 1970, Coordinated Universal Time. 32-bit time_t rolls over at 03:14:07 on Tuesday, 19 January 2038.

Re: Must disable /usr/libexec/security on backup disks

2020-09-14 Thread Todd C . Miller
On Mon, 14 Sep 2020 13:40:03 +0200, Ingo Schwarze wrote: > I think that is an interesting idea. That would be the patch below. > Given that the function find_special_files() looks for SUID, SGID, > and device files, i suggest this logic: skip a mount point if any > of the following is true: > >

Re: Must disable /usr/libexec/security on backup disks

2020-09-13 Thread Todd C . Miller
On Sun, 13 Sep 2020 09:17:02 -, Rupert Gallagher wrote: > Since /usr/libexec/security runs blindly on every attached storage media, it > also runs on mounted tape and backup data volumes. It might be best to only check file systems listed in /etc/fstab that don't have noauto in the options

Re: Troubleshooting rsync

2020-09-06 Thread Todd C . Miller
On Fri, 04 Sep 2020 22:57:03 -0700, Greg Thomas wrote: > Hey all, I'm trying to use WSL on Windows 10 to backup to my OpenBSD server > running 6.7 release. It looks like Debian on WSL is using rsync version > 3.1.2. I tried both the rsync package and openrsync on OpenBSD with the > same

Re: Can I boot without GPU ("headless")?

2020-08-31 Thread Todd C . Miller
On Mon, 31 Aug 2020 15:49:24 +0200, Zeljko Jovanovic wrote: > But wasn't the conclusion of this discussion that you can just buy > one, connect it to computer only for booting, and then disconnect > it and use on another one? He needs to be able to enter the encryption key at boot time. Opening

Re: mfs reported full, but empty

2020-08-19 Thread Todd C . Miller
On Wed, 19 Aug 2020 23:47:57 +0200, Vincent wrote: > After several days, I have to reboot my machine because of mfs full. This is > not the first time. > I have few mfs on this machine, but I observe that this is always a full > filesystem on /tmp after +40 days of uptime. > But on other mfs,

Re: Tunefs(8)

2020-08-10 Thread Todd C . Miller
On Mon, 10 Aug 2020 16:05:12 -, Rupert Gallagher wrote: > Omit the last line of the manual, because there is no need for it. It's a play on the old joke: What's the difference between a piano and a fish? You can tune a piano, but you can't tuna fish! No one would dare remove the

Re: Rsync is too slow

2020-07-30 Thread Todd C . Miller
On Thu, 30 Jul 2020 13:37:39 -0700, Chris Cappuccio wrote: > Rupert Gallagher [r...@protonmail.com] wrote: > > No, I am not using USB. > > your dmesg didn't make it to the list because you are attaching a text file > and attachments are not allowed on misc. Actually, these days they are allowed.

Re: ksh very slow compared to bash when running ghostscript's ./configure script

2020-07-22 Thread Todd C . Miller
On Wed, 22 Jul 2020 18:38:42 +0200, Theo Buehler wrote: > Likely glob. Many glob implementations were found to suffer from > complexity issues: https://research.swtch.com/glob > > The glob(3) in libc was fixed > https://github.com/openbsd/src/commit/5c36dd0c22429e7b00ed5df80ed1383807532b5 > 9 >

Re: OpenSMTPd stops after connection errors

2020-07-17 Thread Todd C . Miller
Yes, smtpd should not die in this case. Can you share the nmap command and script you are running? I tried the following and it worked as expected: nmap -sV -Pn -p 25,587 --version-intensity 8 --script ssl-enum-ciphers \ servername The server did not exit and nmap returned the list of

Re: awk segfaults on RS regexp

2020-07-13 Thread Todd C . Miller
On Mon, 13 Jul 2020 13:02:44 +0200, Jan Stary wrote: > This is current/amd64. > > On UTF input, awk segfaults when using a multi-character RS: > > $ cat /tmp/in > č > > $ hexdump -C /tmp/in > c4 8d 0a|...| > 0003 > > $ cat /tmp/in | awk

Re: ls -R bug?

2020-07-04 Thread Todd C . Miller
On Sat, 04 Jul 2020 20:59:08 +0200, Richard Ipsum wrote: > Output of ls -R between OpenBSD and GNU coreutils seems to differ, > OpenBSD ls -R will apparently list "hidden" directories like .git, > whereas GNU coreutils will not, is this expected behaviour or a bug? I think this is actually a

Re: OpenBSD Readonly File System

2020-06-13 Thread Todd C . Miller
On Sat, 13 Jun 2020 12:12:05 -0400, Nick Holland wrote: > On 2020-06-11 12:07, Strahil Nikolov wrote: > > I always thought that 'sync' mount option is enough to avoid > > corruption of the FS. Am I just "fooling" myself ? > > As "sync" is the default...yes, I think you are. Actually, by

Re: Potential awk bug?

2020-06-08 Thread Todd C . Miller
On Sun, 07 Jun 2020 17:02:03 -0700, Jordan Geoghegan wrote: > Thanks for the quick response. I certainly wasn't expecting to find an > ancient bug like this. Should I be reporting this bug upstream, or are > you planning on upstreaming a diff? I've created a pull request to fix this upstream:

Re: Potential awk bug?

2020-06-07 Thread Todd C . Miller
On Sat, 06 Jun 2020 18:16:39 -0900, Philip Guenther wrote: > Todd, are we up to date with upstream, or is this latent there too? We are not up to date but upstream (https://github.com/onetrueawk/awk) exhibits the same bug. - todd

Re: late pppoe address

2020-06-06 Thread Todd C . Miller
On Sat, 06 Jun 2020 19:14:28 +0200, Jan Stary wrote: > Is the aim to let the ISP know that the iface is down, > so that it gets set up afresh on boot, as opposed to > waiting for some PPP keep-alive timeout? Basically. It is to work around an issue where the pppoe ethernet interface goes down

Re: timegm()

2020-04-23 Thread Todd C . Miller
On Wed, 22 Apr 2020 21:21:28 -0600, "Todd C. Miller" wrote: > That's fine with me. Those interfaces appeared in SunOS 4.0 according > to tzcode (which is where we got them from). They did *not* originate > in NetBSD. I've verified that they were present in SunOS 4.1.3U1,

Re: timegm()

2020-04-22 Thread Todd C . Miller
On Thu, 23 Apr 2020 04:21:42 +0200, Ingo Schwarze wrote: > Calling timelocal(3) deprecated makes sense to me because it is > nothing but a trivial wrapper around mktime(3), and the latter > is standardized, while timelocal(3) is not. > > But i don't quite see why timegm(3) should be marked as

Re: chattr on OpenBSD???

2020-04-17 Thread Todd C . Miller
On Fri, 17 Apr 2020 15:27:33 -0600, "Raymond, David" wrote: > Hmm... Why would I want e2fsprogs on OpenBSD??? Oh, I see, > libreoffice drags it in. One more thing I wish I could dispense with. A bunch of ports pull it in for its uuid code. - todd

Re: chattr on OpenBSD???

2020-04-17 Thread Todd C . Miller
On Fri, 17 Apr 2020 09:11:15 -0600, "Raymond, David" wrote: > I noticed that chattr exists on OpenBSD. The man page says it applies > to Linux file systems (ext* etc). Two questions: > > 1. Does this also apply to OpenBSD's fast file system? (The man page > would suggest not.) No. > 2. If

Re: Compiler warning in ctype.h

2020-03-05 Thread Todd C . Miller
On Thu, 05 Mar 2020 16:07:48 +0100, Thomas de Grivel wrote: > Actually I see the same problem on 6.6-stable : > including readline/readline.h produces warnings. > > Any -Werror hope some day ? You still haven't bothered to include: 1) the compiler you are using 2) the compiler flags to

Re: OpenBSD PPPOE

2020-01-21 Thread Todd C . Miller
On Mon, 20 Jan 2020 22:42:51 -0700, peterwkc wrote: > /etc/hostname.pppoe0 > pppoedev fxp0 authproto pap authname "" authkey "" up > dest 0.0.0.1 > !/sbin/route add default -ifp pppoe0 0.0.0.1 > > Not able to get a connection. What wrong with it? Try using authproto chap instead of pap and see

Re: mailing outage?

2020-01-14 Thread Todd C . Miller
On Tue, 14 Jan 2020 15:11:30 +0100, Jan Stary wrote: > Just to make sure: was there a mail.openbsd.org downtime > this morning (Central Auropen time)? Yes, there was. It is back now, as you can see :-) - todd

Re: [sh] Single quote in comment withing subshell buggy

2019-12-14 Thread Todd C . Miller
On Sat, 14 Dec 2019 09:03:26 +, cho...@jtan.com wrote: > This is certainly not the best way to do this but it does the job: > > In particular it just reeks of kludge, which I'm not happy with > because according to the comment two-dozen lines up it's already a > kludge. The loop is lifted

Re: What's up with bluhms perf tests?

2019-12-09 Thread Todd C . Miller
On Mon, 09 Dec 2019 15:33:24 +0100, Tommy Nevtelen wrote: > I can see that there is a big drop in the throughput graphs, is > something wrong with the data or was there a change that set performance > = false? > > http://bluhm.genua.de/perform/results/perform.html That was probably the

Re: Misc i386 questions

2019-10-15 Thread Todd C . Miller
On Tue, 15 Oct 2019 10:37:41 -0600, Todd C. Miller wrote: > There's your problem. The bha driver is no longer supported by > OpenBSD. You should use SATA or IDE as the disk type in VMWare. Alternately, you should be able to switch the VM to use the mpi driver by editing the .vmx file fo

Re: Misc i386 questions

2019-10-15 Thread Todd C . Miller
On Tue, 15 Oct 2019 00:34:38 -0700, Sean Kamath wrote: > On the 6.0 installation, using 'SCSI', I get: > > bha3 at pci0 dev 16 function 0 "BusLogic MultiMaster" rev 0x01: apic 1 int 17 > , BusLogic 9xxC SCSI > bha3: model BT-958, firmware 5.07B > bha3: sync, parity > scsibus2 at bha3: 8 targets,

Re: support new

2019-08-29 Thread Todd C . Miller
On Thu, 29 Aug 2019 11:43:40 +0200, Ingo Schwarze wrote: > It would no doubt be nice to have a support.html entry for Turkey, > but i'm not convinced i want to add a person who is not even able > to send properly formatted email. The original message was html and got reformatted to text. That

Re: dkim on openbsd mailing lists.

2019-08-18 Thread Todd C . Miller
The mailing list server may modify the subject and from headers (depending on user configuration) and often does modify the message body. That is why DKIM headers are removed. - todd

Re: question about man starttls and linking to cert.pem

2019-08-11 Thread Todd C . Miller
On Sun, 11 Aug 2019 16:03:39 +0200, Gilles Chehade wrote: > It's interesting to have instruction for generating self-signed cert but > most people will want a cert that others will validate so it makes sense > to at least extend the man page (in another diff) in my opinion. And if we do that we

Re: question about man starttls and linking to cert.pem

2019-08-11 Thread Todd C . Miller
On Sat, 10 Aug 2019 22:22:05 -0400, "Ted Unangst" wrote: > That entire section seems dumb and outdated. I would prefer we > simply not give any advice here. Users can figure out what they > need to do. Installing the public cert needs to be done on many > other machines, not just the one where

Re: GPS hardware and TTYs

2019-07-23 Thread Todd C . Miller
On Tue, 23 Jul 2019 13:42:28 -0600, Scott Seekamp wrote: > I tested by: > > - unplugging the sensor > > - changing /etc/ttys > > - kill -HUP 1 > > - plugging sensor in and waiting 30 seconds > > - check sysctl output for data You need to run "ttyflags ttyU0" instead of sending a HUP to

Re: X1 Thinkpad Tablet Freeze on Boot

2019-07-15 Thread Todd C . Miller
On Mon, 15 Jul 2019 14:02:22 -, Charlie Burnett wrote: > Ah- I'm just now seeing the note about the screen going black after the > kernel loads into memory, and doing some more digging shows the same kind > of issue when CSM isn't enabled. Unfortunately they had said that CSM > wasn't

Re: X1 Thinkpad Tablet Freeze on Boot

2019-07-15 Thread Todd C . Miller
You probably need to make some changes to the bios settings, if you haven't already done so. Try disabling "secure boot" and enabling "CSM Support" and see if that makes a difference. Some of the info at https://jcs.org/2017/09/01/thinkpad_x1c may also be applicable. - todd

Re: Oddity re. order of ifconfig commands

2019-07-14 Thread Todd C . Miller
On Sun, 14 Jul 2019 12:35:32 +0300, cho...@jtan.com wrote: > I have two laptops, both on the same wifi network, one with linux and one wit > h openbsd. > > I also string a cable between their ethernet ports for maximum speed which I > bring up manually at each and because I'm too lazy to

Re: 4GB RAM too little for Firefox?

2019-07-08 Thread Todd C . Miller
On Mon, 08 Jul 2019 15:59:54 -0400, Allan Streib wrote: > It does behave like the file is opened and then unlinked. Sorry for my > term "ghost" file I couldn't quite find the right words for what I was > seeing. You can use the fstat command to find these files (even if unlinked) as well as the

Re: [6.5] minidlna error: accept(http): Too many open files

2019-04-28 Thread Todd C . Miller
On Sun, 28 Apr 2019 22:35:36 +0200, "Stephane HUC \"PengouinBSD\"" wrote: > After upgrading OpenBSD from 6.4 to 6.5, I've problem to use minidlna. > It fill the /var/log/minidlna/minidlna.log with severals errors > messages, as: > [2019/04/25 15:26:29] monitor_kqueue.c:226: error: >

Re: authentication methods: how do they work?

2019-03-26 Thread Todd C . Miller
On Tue, 26 Mar 2019 11:11:35 -0400, Daniel Jakots wrote: > On Tue, 26 Mar 2019 10:01:59 -0400, Boris Epstein > wrote: > > > Hello listmates, > > > > Let's say I have the following configured in my /etc/login.conf > > > > auth-defaults:auth=password,skey,yubikey > > > > Would that mean either

  1   2   3   >