Re: majordomo errata

2017-05-24 Thread Todd C. Miller
On Wed, 24 May 2017 16:59:23 -0400, Choose a display name wrote: > The first sentence of the "Unsubscribing from Mailing Lists" section > of majordomo's response to "help" command contains a typo. > > >Your original intro message should contains the exact command > > It should contain, not "cont

Re: bgp-spamd added 192.43.244.163

2017-06-04 Thread Todd C. Miller
On Sun, 04 Jun 2017 12:09:51 -0500, Edgar Pettijohn wrote: > Did a little more digging. Looks like the list 192.43.244.163 is on the > SORBS Spam list. I have delisted it. - todd

Re: fsck_ffs: cannot alloc 131427074 bytes for lncntp

2017-07-26 Thread Todd C. Miller
On Wed, 26 Jul 2017 17:24:14 +0200, Jon S wrote: > Problem solved/workaround: running fsck /dev/... worked. The problem seemd > to be with running fsck_ffs /dev/... That is because the fsck front-end will increase the resource limits before executing fsck_ffs. You should never invoke fsck_fstype

Re: how to know the state of the dd's progression

2017-08-09 Thread Todd C. Miller
dd will display progress when it receives SIGINFO, usually bound to the Control-T keypress. - todd

Re: sudoreplay in sudo 1.8.21 on 6.2-snapshot

2017-09-01 Thread Todd C. Miller
The sudoreplay event loop was rewritten in 1.8.21. The bug only occurs when logging input as well as output. I've reproduced this now and will debug it later today. - todd

Re: sudoreplay in sudo 1.8.21 on 6.2-snapshot

2017-09-02 Thread Todd C. Miller
This is fixed in sudo 1.8.21p1. It's in ports now but you'll need to wait a bit for a prebuild package, though you can of course build your own. - todd

Re: What is the correct debugger used for debugging program built with clang++?

2017-10-05 Thread Todd C. Miller
The gdb in base is very old. To debug programs compiled with clang you should use egdb from ports. - todd

Re: Excited for 6.2 - C'mon and release this bad boy!

2017-10-06 Thread Todd C. Miller
On Fri, 06 Oct 2017 16:34:24 +0100, Rui Ribeiro wrote: > Sorry, have not been able to use the installation image in the last few > days. The 6.2 directory started popping last week without it existing, and > even 2-3 days ago the installation was not working yet even trying to point > to the new d

Re: gtar: ambiguous package

2017-10-09 Thread Todd C. Miller
On Mon, 09 Oct 2017 17:24:53 +0200, Max Power wrote: > Hi guys, and wishes for the new release, Thank You Theo. > > Installing gtar ask me: > Ambiguos: choose package for gtar > a 0: > 1: gtar-1.28p1 > 2: gtar-1.28p1-static > Your choice: > > Ok, but differece between 'nor

Re: mail and newaliases do not work 6.1 and 6.2 for me

2018-05-01 Thread Todd C. Miller
On Tue, 01 May 2018 21:04:19 +0300, Ivo Chutkin wrote: > Restarting smtpd did it. > > I did not know I have to restart smtpd in order to get it working after > change in alias. You need to restart smptd if you are using a file-based table for aliases. If you use a db instead of file you don't n

Re: mail and newaliases do not work 6.1 and 6.2 for me

2018-05-01 Thread Todd C. Miller
On Tue, 01 May 2018 13:09:27 -0600, "Todd C. Miller" wrote: > You need to restart smptd if you are using a file-based table for > aliases. If you use a db instead of file you don't need to restart. Actually, you don't need to restart smtpd for file-based tables if you

Re: Viewport for man.openbsd.org -- readability on phones

2018-05-17 Thread Todd C. Miller
On Fri, 18 May 2018 02:47:29 +0200, Ingo Schwarze wrote: > I must say i never particularly liked that line in the CSS file. > It always felt like fiddling with details that it might be better > not to touch, given that display devices running browsers differ > more than terminal emulators. And he

Re: sgtty.h

2018-06-11 Thread Todd C. Miller
On Mon, 11 Jun 2018 17:05:02 +0200, Pau wrote: > I am trying to compile a very old piece of software, supermongo, on -current. > > The first complain I get from gmake is that > > get1char.c:26:14: fatal error: 'sgtty.h' file not found > #include > ^ > 1 error generated. >

Re: how to know the progressive state of dd

2018-06-25 Thread Todd C. Miller
As someone else mentioned you would use pkill on OpenBSD. However, you will also need to use SIGINFO, not SIGUSR1, to get dd's status. BSD systems have traditionally used SIGINFO for this purpose. Linux lacks SIGINFO so there is no consistent signal for this kind of a thing there. - todd

Re: newaliases vs makemap

2018-07-16 Thread Todd C. Miller
On Sun, 15 Jul 2018 17:59:58 -0700, Scott Vanderbilt wrote: > In /etc/mail/aliases, there is the following note: > > # >> The program "newaliases" must be run after > # >> NOTE >> this file is updated for any changes to > # >> show through to smtpd. That

Re: newaliases vs makemap

2018-07-16 Thread Todd C. Miller
On Mon, 16 Jul 2018 09:11:50 -0700, Scott Vanderbilt wrote: > BTW, newaliases seg faults for me with latest couple of snapshots > (amd64). No message other than "segmentation fault". Just submitted a PR > with sendbug. Already fixed in -current by: CVSROOT:/cvs Module name:src Chan

Re: newaliases vs makemap

2018-07-21 Thread Todd C. Miller
On Thu, 19 Jul 2018 15:13:57 -0600, Theo de Raadt wrote: > An interface was copied from sendmail because that is what everyone > knows. Therefore a program has to exist, which works exactly like > everyone already knows. Therefore it must not have glitches and > behaviours which cause confusion.

Re: want.html reachable from homepage?

2018-08-28 Thread Todd C. Miller
On Tue, 28 Aug 2018 22:00:11 +0200, =?UTF-8?Q?Martin_Schr=C3=B6der?= wrote: > is there a clickpath from www.openbsd.org to want.html? There is a link to it at the bottom of http://www.openbsd.org/report.html (reachable via "Reporting Problems" on the main page) as well as the first page of the FA

Re: Problem building GCC 8.2.0 amd64-to-i386 cross-compiler

2018-09-25 Thread Todd C. Miller
On Mon, 24 Sep 2018 23:43:20 -0400, Katherine Rohl wrote: > I need to build a GCC cross-compiler targeting i386-pc-elf. I'm running > into problems with the build on OpenBSD 6.3. > > I've already successfully built a binutils-2.31.1 for i386-pc-elf. > > Trying to use the GCC 4.9.4 package (as GCC

Re: checking source with pvs-studio

2018-10-03 Thread Todd C. Miller
On Wed, 03 Oct 2018 10:20:45 +0200, Ingo Schwarze wrote: > Which is of course trivial to do - you write a script to do a > checkout, run "sed -i", run the tool, collect the the results, > and delete the checkout. So the harassment by the author is not > even effective for his intended purpose. T

Re: checking source with pvs-studio

2018-10-03 Thread Todd C. Miller
On Wed, 03 Oct 2018 17:42:16 +0100, Tom Smyth wrote: > ... is it just 750 for a License ? > If one were to donate a License ? would that work for the project ? No, it would not. Their licensing model simply won't work for us. Even if it did, it's not like we could run it natively on OpenBSD.

Re: checking source with pvs-studio

2018-10-03 Thread Todd C. Miller
On Wed, 03 Oct 2018 18:07:00 +0100, Tom Smyth wrote: > I was thinking ... it might be possible to examine > a copy of the code out of band on a different OS system ... > and deal with the bugs that are flagged > as part of the normal OpenBSD development process, It is possible to generate pre-pro

Re: network problem with latest snapshots

2018-10-05 Thread Todd C. Miller
On Fri, 05 Oct 2018 01:45:22 -0300, Thanos Tsouanas wrote: > I was hoping it could have been some "bad timing" with the snapshots > back then but the problem is still there with the latest snapshot: > this ethernet card cannot work under -current, but works fine under > 6.3, and used to work under

Re: what would a POP3s daemon best look like?

2018-10-30 Thread Todd C. Miller
I don't think there is much interest in having a pop3 daemon in base due to the use of plain-text passwords but if you want to check out a copy the old one, you can do it like this: cvs get -rOPENBSD_5_4 src/usr.sbin/popa3d The DESIGN file in that directory describes the security model. - todd

Re: what would a POP3s daemon best look like?

2018-10-30 Thread Todd C. Miller
On Tue, 30 Oct 2018 09:32:45 -0600, "Todd C. Miller" wrote: > I don't think there is much interest in having a pop3 daemon in > base due to the use of plain-text passwords but if you want to check > out a copy the old one, you can do it like this: > > cvs get -rO

Re: what would a POP3s daemon best look like?

2018-11-04 Thread Todd C. Miller
On Sun, 04 Nov 2018 12:26:27 +0100, Walter Alejandro Iglesias wrote: > I've been assuming that running pop3d(8) from ports, listening in 995 > only and with 110 port firewalled my passwords aren't traveling in plain > text. Am I assuming right? Port 995 is pop3 protocol over TLS/SSL so that shou

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 not

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

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 SunO

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 du

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

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

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 '{print

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 ciphe

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

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

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

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 u

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

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 f

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: 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: 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 OS.

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

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 init

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 its

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 s

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

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

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 fi

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 followin

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 from

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

Re: OpenBSD parts in Toyota Highlander

2015-09-26 Thread Todd C. Miller
On Sat, 26 Sep 2015 12:51:27 -0600, Diana Eichert wrote: > Todd's is most likely sudo That's probably strlcpy/strlcat. - todd

Re: dig and DNSSEC

2015-09-26 Thread Todd C. Miller
On Sat, 26 Sep 2015 22:03:50 +0200, Denis Fondras wrote: > As Unbound/nsd are in base now, perhaps it could be easier to get > drill in and drop dig ? That's a great idea. We'd need to add nslookup(1) and host(1) wrappers though. - todd

Re: cron log in /var/log

2015-11-11 Thread Todd C. Miller
On Wed, 11 Nov 2015 12:29:30 -0500, Jiri B wrote: > As cron got a quite interested recently, isn't > right time to move its log to /var/log? > Or does having /var/cron/log have any specific reason? Since it is just another syslog file /var/log makes sense. I worry a bit about people's log watchin

Re: cron log in /var/log

2015-11-11 Thread Todd C. Miller
On Wed, 11 Nov 2015 12:52:51 -0500, Jiri B wrote: > Other thing, when I was playing with most filesystems r/o I also > found having '.sock' in /var/cron/tabs little annoying, > as we usually use /var/run and I was already having /var/run > as mfs. Since like piece of cake to move it to /var/run.

Re: cron daily insecurity output

2015-11-11 Thread Todd C. Miller
On Wed, 11 Nov 2015 20:31:03 +0100, Adam Wolk wrote: > cron started to be recently reported in my insecurity output after > upgrading to snapshot from Nov 6: > > Checking special files and directories. > Output format is: > filename: > criteria (shouldbe, reallyis) > var/cron/

Re: Inconsistency in utimes(2) manpage

2016-01-05 Thread Todd C. Miller
On Tue, 05 Jan 2016 16:38:46 +0100, Carsten Kunze wrote: > the DESCRIPTION section of utimes(2) refers to "path" while > the SYNOPSIS section uses the term "file". Maybe the term > "path" should be used instead of "file" in SYNOPSIS. Fixed, thanks. - todd

Re: sudo and globbing

2016-01-08 Thread Todd C. Miller
You are comparing two very different versions of sudo. The sudo that used to ship with OpenBSD is version 1.7.2p8 which is rather ancient. On Linux you probably have some variant of sudo 1.8.x. Newer versions of sudo escape spaces in the command run via "sudo -s" whereas the ancient 1.7.2p8 does

Re: question about fprintf()

2016-02-15 Thread Todd C. Miller
On Mon, 15 Feb 2016 19:22:59 +0300, Alexei Malinin wrote: > Please tell me can fprintf() set errno to EINTR? Yes, it is possible but see below. > I have not found assignments such as "errno=EINTR" in libc sources > (src/lib/libc/stdio, amd64 OpenBSD-5.6 ) but I'm not sure. > > fprintf()'s man p

Re: question about fprintf()

2016-02-15 Thread Todd C. Miller
On Mon, 15 Feb 2016 21:08:20 +0300, Alexei Malinin wrote: > But can fprintf() set errno to EINTR if a program has no signal handlers > (i. e. there are default handlers for all signals)? > For example what will happen with fprintf() in a program with default > signal dispositions if the program's

Re: doas(1) and $PATH

2016-02-19 Thread Todd C. Miller
On Wed, 13 Jan 2016 11:17:55 -0500, Philippe Meunier wrote: > By the way, while playing with which(1) and doas(1) and $PATH, I > managed to get which(1) to core dump, twice, although I have not been > able to reproduce it reliably. The crash in which was fixed recently. - todd

Re: doas(1) and $PATH

2016-02-19 Thread Todd C. Miller
On Fri, 19 Feb 2016 13:45:28 -0700, "Todd C. Miller" wrote: > On Wed, 13 Jan 2016 11:17:55 -0500, Philippe Meunier wrote: > > > By the way, while playing with which(1) and doas(1) and $PATH, I > > managed to get which(1) to core dump, twice, although I have not b

Re: something wrong with softraid

2017-12-20 Thread Todd C. Miller
There should be no /dev/rsd4, the correct device nodes are /dev/rsd4a through /dev/rsd4p. As you've shown, the /dev/rsd4 file you have is not a device node anyway, it is a regular file. You might want to take a look at its contents to try to understand what created it but it should be safe to jus

Re: Code Storing point

2017-12-27 Thread Todd C. Miller
On Thu, 28 Dec 2017 01:57:31 +0300, "jin&hitman&Barracuda" wrote: > My company wrote an authentication software and dev. teams decided to close > code to others. A customer requested to see codes under one certain > condition. They demand to see our codes if our company fall into problems > that c

Re: Performance issues as KVM guest?

2018-01-11 Thread Todd C. Miller
This sounds like the same issue as was described here: https://marc.info/?l=openbsd-bugs&m=151430928212450&w=2 - todd

Re: Writing "ones" instead of "zeroes" when wiping disk

2018-01-11 Thread Todd C. Miller
On Thu, 11 Jan 2018 22:09:32 -0500, "trondd" wrote: > A 1 is too narrow to fully cover the original data. You need to use an 8 to wipe out all seven segments. - todd

Re: OpenBSD: signal handling and strange behaviour.

2018-01-30 Thread Todd C. Miller
There are known clock/timer issues with OpenBSD under KVM due to what appear to be bugs in KVM. There is some info in the following thread: https://marc.info/?l=openbsd-bugs&m=151430928212450&w=2 I'm afraid you are on a wild goose chase. The behavior you are seeing is not what you'd see on bare

Re: at/batch(1) and ssh-agent(1) environment variables

2018-01-31 Thread Todd C. Miller
On Wed, 31 Jan 2018 11:39:23 +0100, Erwin Geerdink wrote: > at/batch(1) appears to not retain SSH_AUTH_SOCK and SSH_AGENT_PID > environment variables when commands are executed. According to the man > page: > > "(...) The working directory, the environment (except for the variables > TERM, TERMCA

Re: Loop problem in sending mail to root

2018-03-05 Thread Todd C. Miller
The answer is probably in your /etc/mail/aliases file. Do you have an entry for root in there? If so, it needs to point to a different user. An entry like the following would cause the error: root: root For sendmail, an entry like this would cause the mail to be delivered locally for the user.

Re: OpenSMTPd maillist "compatible" manager Majordomo or what?

2018-03-20 Thread Todd C. Miller
On Tue, 20 Mar 2018 09:32:09 -0400, Allan Streib wrote: > Does mlmmj provide self-service-via-email? I could not quite tell from > their online man pages. > > E.g. as a subscriber to a list, can I send an email to something like > listname+unsubscr...@example.com to unsubscribe? Yes. The documen

Re: unbound reload crashes the server

2018-03-22 Thread Todd C. Miller
On Thu, 22 Mar 2018 16:02:56 -0500, Edgar Pettijohn wrote: > It is chroot'd to /var/unbound so it looks for /etc/unbound.conf from > that false root. At least that is my best guess. What is in > /etc/rc.conf.local? > > I have the following: > unbound_flags=-c /var/unbound/etc/unbound.conf > > I

Re: 4-ports router under $150

2018-04-11 Thread Todd C. Miller
On Wed, 11 Apr 2018 10:49:54 +0300, lilit-aibolit wrote: > Hi, I've been looking for more then one year to get something similar > until I found this: > > https://pt.aliexpress.com/item/Celeron-J1900-Mini-pc-free-shipping-micro-sd-t > wo-usb-and-four-lan-laptop-overwatch-Computer/32794678352.html

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

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

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 wor

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 alternati

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

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

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: "fastcgi://127.0.

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

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 kernel

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 redu

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. Actually,

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

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 pos

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

  1   2   3   >