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

Re: After upgrade to -current on sparc64 unable to su

2019-03-23 Thread Todd C . Miller
I just committed a fix for this, the next snapshot should include it. - todd CVSROOT:/cvs Module name:src Changes by: mill...@cvs.openbsd.org 2019/03/23 11:03:00 Modified files: lib/libc/gen : login_cap.c auth_subr.c Log message: Remove useless secure_path(3) calls.

Re: Is there a fix for stock vi's bug-for-bug compatible ESC-equals-return feature?

2019-02-20 Thread Todd C . Miller
On Mon, 18 Feb 2019 09:04:36 +0100, ropers wrote: > While this feature/bug is counter-intuitive (IMHO), I presume nvi acts > this way so as to be bug-for-bug compatible with original vi. (That's > my guess. I haven't actually confirmed this.) You can install the traditional-vi port and compare

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

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

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

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

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

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

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

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

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

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.

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

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 run ne

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

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 >

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

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

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

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,

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=151430928212450=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: 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: 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=151430928212450=2 - todd

Re: Code Storing point

2017-12-27 Thread Todd C. Miller
On Thu, 28 Dec 2017 01:57:31 +0300, "jin" 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 cause to lose the

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

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

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

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

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

Re: 6.1: /usr/local/bin/node: W^X binary outside wxallowed mountpoint

2017-04-25 Thread Todd C. Miller
On Tue, 25 Apr 2017 16:49:36 +0200, Maxim Bourmistrov wrote: > Any work around for this one? > > Mount with wxallowed not working. Two things are required: 1) The binary must be on a file system mounted with the wxallowed option. 2) The binary must have the OPENBSD_WXNEED type in the ELF

Re: OpenBSD 6.1, boot can't find kernel anymore

2017-04-24 Thread Todd C. Miller
You need to post your /var/run/dmesg.boot if you want someone to help you debug this. - todd

Re: ftpsesame package

2017-04-12 Thread Todd C. Miller
On Wed, 12 Apr 2017 21:27:49 +0200, Olivier Regnier wrote: > "ftpsesame chroots to "/var/empty" and changes to user "proxy" to drop > privileges. It does keep a file descriptor to both bpf > (4) and pf >

Re: getifaddrs()

2017-04-04 Thread Todd C. Miller
On Tue, 04 Apr 2017 09:21:45 -0500, Edgar Pettijohn wrote: > This is somewhat a continuation of my previous question about max > interfaces. I wanted to know how much space I needed for a buffer using > ioctl(). Then I discovered getifaddrs() Good, you want to use getifaddrs() and not the old

Re: Just to understand, ARM64 has SMP and ARM32 does not? &, OpenBSD design fine with ARM's weak mem coherency?

2017-02-26 Thread Todd C. Miller
On Sun, 26 Feb 2017 03:56:33 +, Tinker wrote: > Did I get it right, that ARM64 has SMP (as of the patches this week), > but ARM32 does not have SMP and will not get it too? As Peter says, someone has to step up andf do the work for ARM32 SMP. That said, it probably doesn't make sense to

Re: Problem with "xargs -0"

2017-01-16 Thread Todd C. Miller
We just need to increment count in the NUL case, nothing more. - todd Index: usr.bin/xargs/xargs.c === RCS file: /cvs/src/usr.bin/xargs/xargs.c,v retrieving revision 1.31 diff -u -p -u -r1.31 xargs.c --- usr.bin/xargs/xargs.c

Re: Problem with "xargs -0"

2017-01-16 Thread Todd C. Miller
On Mon, 16 Jan 2017 17:05:30 +0100, Martin Ziemer wrote: > As I said in the other mail: The -I separates at new LINES (in the > Code it sets the Parameter -L to 1, so it starts a new entry on every > non empty line. I'm sorry but that is a documentation error if anything. When using -0 a "line"

Re: Problem with "xargs -0"

2017-01-16 Thread Todd C. Miller
On Mon, 16 Jan 2017 16:51:16 +0100, Andreas Kusalananda =?iso-8859-1?B?S+Ro5HJp ?= wrote: > Well, the manual also says, about "-0": > > Change xargs to expect NUL (‘\0’) characters as separators, instead > of spaces and newlines. > > Note the "instead of". It is definitely a bug. The

Re: Problem with "xargs -0"

2017-01-16 Thread Todd C. Miller
On Mon, 16 Jan 2017 12:19:31 +0100, Andreas Kusalananda =?iso-8859-1?B?S+Ro5HJp ?= wrote: > However, when I use nul-termination instead: > > $ printf 'hello\00world\00' | xargs -0 -I arg printf '>%s<\n' "arg" > >hello world< This appears to be a bug with the -I handling. Without -I it

Re: maybe move texinfo from base in the ports?

2017-01-05 Thread Todd C. Miller
On Thu, 05 Jan 2017 21:18:45 +0300, =?UTF-8?B?0JDQvdC00YDQtdC5INCR0L7Qu9C60L7Qv dGB0LrQuNC5?= wrote: > https://github.com/openbsd/src/tree/master/usr.bin/keynote > remove this obsolete directory, please... How is it obsolete? The keynote binary is still built from there, it's just that the

Re: usermod: Invalid password: `*'

2017-01-05 Thread Todd C. Miller
This works in -current. I've verified that it works with rev 1.112 of user.c but OpenBSD 6.0 has user.c rev 1.111. - todd

  1   2   3   >