Re: patch unveil fail

2023-10-25 Thread Todd C . Miller
On Wed, 25 Oct 2023 13:38:37 +0200, Alexander Bluhm wrote: > Since 7.4 patch(1) does not work if an explicit patchfile is given on > command line. > > https://marc.info/?l=openbsd-cvs&m=168941770509379&w=2 OK millert@ - todd

Re: timeout(1): align execvp(3) failure statuses with GNU timeout

2023-10-16 Thread Todd C . Miller
very utility. I could go either way on that. It's true that this is default shell behavior so you probably don't need to document it. - todd

Re: timeout(1): align execvp(3) failure statuses with GNU timeout

2023-10-15 Thread Todd C . Miller
On Sun, 15 Oct 2023 13:53:46 -0500, Scott Cheloha wrote: > Align timeout(1)'s execvp(3) failure statuses with those of GNU > timeout. 127 for ENOENT, 126 for everything else. Looks correct to me. OK millert@ - todd

Re: CVS: cvs.openbsd.org: src

2023-10-10 Thread Todd C . Miller
age-ID if missing. I don't think it should be adding it to relayed messages. Messages received on the submission port are special, they need to be treated as local even though they originated elsewhere. - todd

Re: CVS: cvs.openbsd.org: src

2023-10-10 Thread Todd C . Miller
hink so. Hard-coding ports is not great but there isn't a way in the config file to indicate that explicitly. - todd

Re: missing FreeBSD stdio patch

2023-10-04 Thread Todd C . Miller
On Wed, 04 Oct 2023 11:53:51 -0600, Todd C. Miller wrote: > Yes, this should be fixed. One difference is that in FreeBSD, > __swsetup() sets errno whereas in OpenBSD we set errno in the caller > when cantwrite() is true. I think it makes sense to set both errno > and the __SERR flag

Re: missing FreeBSD stdio patch

2023-10-04 Thread Todd C . Miller
this should be fixed. One difference is that in FreeBSD, __swsetup() sets errno whereas in OpenBSD we set errno in the caller when cantwrite() is true. I think it makes sense to set both errno and the __SERR flag in the same place. We just need to decide which place that is :-) - todd

Re: Buffer overflow in /usr/bin/deroff

2023-09-27 Thread Todd C . Miller
On Wed, 27 Sep 2023 10:59:26 -0600, "Todd C. Miller" wrote: > I think we want support for arbitrary line lengths. There is only > one place where we need to reallocate the line buffer. The correct check is for "lp - line == linesz - 1". The code will overwrite th

Re: Buffer overflow in /usr/bin/deroff

2023-09-27 Thread Todd C . Miller
h with no breaking. > > Presumably nobody is relying on the current behaviour in scripts or other > code, as it's always been broken. I think we want support for arbitrary line lengths. There is only one place where we need to reallocate the line buffer. - todd

Re: malloc write after free error checking

2023-09-24 Thread Todd C . Miller
especially as regular malloc code did not > change at all (the extra info needed is only collected if malloc flag > D is set). This is very cool. Being able to tell where the (now-freed) chunk was allocated is a huge help in debugging this kind of issue. - todd

Re: ksh(1): implement p_tv() with p_ts()

2023-09-12 Thread Todd C . Miller
L_TO_TIMESPEC if necessary. - todd

Re: ksh(1): implement p_tv() with p_ts()

2023-09-12 Thread Todd C . Miller
On Mon, 11 Sep 2023 22:10:49 -0500, Scott Cheloha wrote: > p_tv() is identical to p_ts() in every way except for the subsecond > conversion constants. > > Better to write p_ts() once: in p_tv(), convert from timeval to > timespec and call p_ts(). OK millert@ - todd

Re: clang 15 and zlib

2023-09-05 Thread Todd C . Miller
On Wed, 06 Sep 2023 10:43:34 +1000, Jonathan Gray wrote: > tb updated us to the newer version a while ago OK millert@ - todd

Re: pax(1) and tar(1): fix misleading -DSMALL

2023-09-04 Thread Todd C . Miller
> 6878108432 79941f3aobj/options.o > 390175 19024 85392 494591 78bff obj/pax > > I don't expect any regression on the ramdisks but a make release is > running just in case. Sure, nothing relies on that anyway. - todd

Re: fw_update lock_db should exit when parent exits

2023-08-24 Thread Todd C . Miller
HUP. Since our pipes are actually bidiretional we can cheat and use select. Something like this: - todd lock_db() { [ "${LOCKPID:-}" ] && return 0 # The installer doesn't have perl, so we can't lock there [ -e /usr/bin/perl ] || return 0

Re: fw_update lock_db should exit when parent exits

2023-08-23 Thread Todd C . Miller
nstead of the sleep() to tell when it goes away. - todd

Re: ualarm.3: cleanup, rewrites

2023-07-31 Thread Todd C . Miller
gh the minefield of matching bespoke > "_t" types to real types and limits. > > Tweaks? ok? OK millert@ - todd

Re: cron -n/-s/-q whitespace and /etc/crontab

2023-07-19 Thread Todd C . Miller
> > Is this a "so don't do that then", or is it expected to work? > (There's no problem with "per-user crontab" files). It is a bug. There is a missing call to Skip_Blanks() for the /etc/crontab case. Instead of adding yet another unget_char() after Skip_Blan

Re: ftp: drop needless strcspn

2023-06-28 Thread Todd C . Miller
httpd(8) to append " \t " at the end of > every header (legal per rfc 7230) and observing that ftp still works > fine, including mtime handling. OK millert@ - todd

pax: truncate times to MAX_TIME_T, not INT_MAX

2023-06-26 Thread Todd C . Miller
If the mtime in the file header is larger than MAX_TIME_T, trucate it to MAX_TIME_T, not INT_MAX. The existing assignment dates from before we had a MAX_TIME_T definition in pax. OK? - todd Index: cpio.c === RCS file: /cvs/src

Re: posix_spawn(3): explain that handling NULL envp is an extension

2023-06-26 Thread Todd C . Miller
On Mon, 26 Jun 2023 17:24:38 +0200, Paul de Weerd wrote: > Having never heard of posix_spawn(3), I read the full manpage and > (besides wondering "what's the point"), found that it's misspelled Ed > Schouten's name: Yes, that should be fixed. - todd

Re: csh(1), ksh(1), time(1): print durations with millisecond precision

2023-06-25 Thread Todd C . Miller
Other implementations of "time -p" (both builtin and standalone) only display two digits after the radix point. I'm a little concerned about breaking scripts that consume out the output of "time -p". Changing the precission of the non-portable output format is fine. - todd

Re: smtpd: allow arguments on NOOP

2023-06-23 Thread Todd C . Miller
specifies only one optional string, while here for semplicity > it's relaxed to allow anything. This is a case where being liberal in what you accept seems fine. OK millert@ - todd

Re: Error in ex(1) s command when using c option and numbering on

2023-06-22 Thread Todd C . Miller
On Tue, 07 Feb 2023 20:35:10 -0700, Todd C. Miller wrote: > On Tue, 07 Feb 2023 17:17:02 -0700, Todd C. Miller wrote: > > > Yes, the bug is that the number is not displayed. The following > > diff fixes that but there is still a bug because the resulting line > > also

Re: avoid truncation of filtered smtpd data lines

2023-06-21 Thread Todd C . Miller
On Wed, 21 Jun 2023 19:11:09 +0200, Omar Polo wrote: > On 2023/06/20 14:38:37 -0600, Todd C. Miller wrote: > > > qid = ep+1; > > > - if ((ep = strchr(qid, '|')) == NULL) > > > - fatalx("Missing reqid: %s", line); > > > - ep[0

Re: avoid truncation of filtered smtpd data lines

2023-06-20 Thread Todd C . Miller
ck is that we now need to use a few strncmp, but I think it's > worth it. This seems like a good approach, minor comments inline. - todd > diff /usr/src > commit - 5c586f5f5360442b12bbc4ea18ce006ea0c3d126 > path + /usr/src > blob - a714446c26fee299f4450ff1ad40289b5b3

Re: open_memstream cleanup

2023-06-20 Thread Todd C . Miller
code to be like open_memstream(). OK millert@ - todd

Re: smtpd: sync imsg_to_str()

2023-06-18 Thread Todd C . Miller
rything in sync. Using the same order as smtpd.h makes sense. OK millert@ - todd

Re: smtpd-filters: swap link-auth fields

2023-06-14 Thread Todd C . Miller
PD/issues/1213 > > Diff below is straightforward and includes the documentation changes. > I believe link-auth was forgotten in revision 1.61 of lka_filter.c > when the mail-from/rcpt-to events got their fields swapped. OK millert@ - todd

Re: seq: fix check for rounding error/truncation

2023-06-12 Thread Todd C . Miller
That probably requires a separate code path specifically for integers. One thing at a time. - todd

Re: seq: fix check for rounding error/truncation

2023-06-12 Thread Todd C . Miller
For context, see: https://chaos.social/@Gottox/110527807405964874 https://github.com/chimera-linux/chimerautils/commit/1ecc1e99d4a309631e846a868b5a422f996704ac

seq: fix check for rounding error/truncation

2023-06-12 Thread Todd C . Miller
. I have a few that I will commit after this is in. - todd Index: usr.bin/seq/seq.c === RCS file: /cvs/src/usr.bin/seq/seq.c,v retrieving revision 1.6 diff -u -p -u -r1.6 seq.c --- usr.bin/seq/seq.c 25 Feb 2022 16:00:39 -

Re: acme-client(8): preliminary support for HiCA

2023-06-09 Thread Todd C . Miller
to substitute in the OpenBSD version and architecture. - todd

Re: switch mail.local to getline()

2023-06-04 Thread Todd C . Miller
On Sat, 03 Jun 2023 11:55:46 +0200, Omar Polo wrote: > As per subject. While here I couldn't resist simplifying the "From " > check too, although it is indipendent from the rest of the diff. > (could commit separately if preferred.) OK millert@ - todd

Re: smtpd: add missing time.h include

2023-05-31 Thread Todd C . Miller
7;m also including sys/time.h in smtpd.h, as noted in > event_init(3), since we're including event.h. OK millert@ - todd

Re: ksh, test: test -t file descriptor isn't optional

2023-05-30 Thread Todd C . Miller
27;;' after the "return 0". - todd

Re: Bail out on "id -R user"

2023-05-30 Thread Todd C . Miller
t@ as well if you want to commit it. - todd

Re: userdel: remove login group for =uid

2023-05-25 Thread Todd C . Miller
That is also a lot easier to document. - todd

Re: Installer: use $(

2023-05-24 Thread Todd C . Miller
re > > { local var=$(<$HTTP_SEC); } 2>/dev/null > > which is sufficiently opaque that I'm not sure it's an improvement. OK millert@ - todd

Re: sticky(8): mark S_ISVTX as Dv

2023-05-24 Thread Todd C . Miller
On Wed, 24 May 2023 16:04:13 +0200, Omar Polo wrote: > It makes `man -k any=S_ISVTX' slightly more useful by pointing at > sticky(8) too other than strmode(3); may help if someone (like me :-) > forgot about sticky(8) files. OK millert@ - todd

Re: Installer: use $(

2023-05-24 Thread Todd C . Miller
splay the more useful message? With diff: $ echo $(< /nope) ksh: /nope: No such file or directory - todd diff -u -p -u -r1.66 eval.c --- bin/ksh/eval.c 13 Sep 2020 15:39:09 - 1.66 +++ bin/ksh/eval.c 24 May 2023 14:03:41 - @@ -8,6 +8,7 @@ #include #include +#includ

Re: userdel: remove login group for =uid

2023-05-19 Thread Todd C . Miller
lete output simpler by just asking > the admin to delete the user, instead of both user and group. Right. - todd

userdel: remove login group for =uid

2023-05-19 Thread Todd C . Miller
s no other members. This makes our userdel(8) behave more like the version on other systems. Opinions? This is something that has always bothered me and can result in uid/gid mismatches if you remove a user, then re-add them without removing the login group first. Thoughts or strong opinions? - t

Re: smtpd.conf.5: fix markup for action maildir

2023-05-19 Thread Todd C . Miller
> quite clear from the grammar in parse.y. OK millert@ - todd

Re: user: handle paths with whitespace / metacharacters

2023-05-18 Thread Todd C . Miller
s); > > + if (ret != 0) > > + warnx("[Warning] unable to run `%s'", buf); > > more than "unable to run" I'd say "failed to run" or "command > failed" / "exited with nonzero st

user: handle paths with whitespace / metacharacters

2023-05-18 Thread Todd C . Miller
The way user(8) runs commands via system(3) is fragile. It does not correctly handle paths with whitespace or shell metacharacters. Rather than try to quote everything (which is also fragile) I think it is safest to just exec the commands directly. OK? - todd Index: usr.sbin/user/user.c

Re: ix hardware tso

2023-05-16 Thread Todd C . Miller
On Tue, 16 May 2023 19:26:07 +0200, Alexander Bluhm wrote: > On Tue, May 16, 2023 at 11:15:31AM -0600, Todd C. Miller wrote: > > Would it be possible to move the forward declaration of struct tdb > > to netinet/tcp_var.h so it is not required in every driver? > > sure Than

useradd: use "cp" instead of "pax" to copy dot files

2023-05-16 Thread Todd C . Miller
We can just use "cp -a skeldir/. homedir" to copy the skeleton dot files to the new user's homedir. There's no good reason to use pax when cp will do and this will simplify a future commit of mine. - todd Index:

Re: smtpd: some fatal -> fatalx

2023-05-16 Thread Todd C . Miller
closed > > So change most of them to fatalx which doesn't append errno. While > here I'm also logging the actual error, via tls_config_error() or > tls_error(), that before was missing. > > tls_config_new(), tls_server() and tls_client() failures are still > logged with fatal(), which I believe it's correct. OK millert@ - todd

user: simplify memsave() to strsave()

2023-05-15 Thread Todd C . Miller
All the callers of memsave() pass strlen(s) as the size argument. We can eliminate the size argument and just use strdup(3) instead. OK? - todd Index: user.c === RCS file: /cvs/src/usr.sbin/user/user.c,v retrieving revision 1.128

Re: smtpd: nits to reduce the diff with -portable

2023-05-15 Thread Todd C . Miller
K millert@. It would be nice to get these changes in portable as well to avoid gratuitous differences. - todd

Re: seperate LRO/TSO flags

2023-05-10 Thread Todd C . Miller
; > Why would you want to differentiate the address families here? I was mostly just curious as I see FreeBSD seems to support this. That made we wonder if there is hardware that only supports offloading for IPv4. - todd

sigsuspend.2: document behavior for discarded signals

2023-05-10 Thread Todd C . Miller
The sigsuspend(2) man page doesn't spell out explicitly what happens for signals that are discarded, either as the default action or where the handler is set to SIG_IGN. I think it should. OK? - todd Index: lib/libc/sys/sigsusp

Re: seperate LRO/TSO flags

2023-05-10 Thread Todd C . Miller
onfig(8) we use "tcprecvoffload" and "tcpsendoffload". So, the > user has a better insight of what this features are doing. Is it possible to control these at the address family level? In other words, is it possible to enable "tcprecvoffload" and "tcpsendoffload" for inet but not inet6 or vice versa? - todd

Re: smtpd: nits to reduce the diff with -portable

2023-05-10 Thread Todd C . Miller
t; and month? Sure. OK millert@ for this one too. - todd

Re: smtpd: nits to reduce the diff with -portable

2023-05-09 Thread Todd C . Miller
a const for a variable (no idea how it went there in > -portable but it's not wrong so including that too.) OK millert@ - todd

Re: acme-client.conf example: more explicit clue to test with staging server

2023-05-09 Thread Todd C . Miller
On Tue, 09 May 2023 21:45:30 +0200, Theo Buehler wrote: > Some expressed concern that it should be done the other way around, > i.e., leave the default at letsencrypt. Perhaps it's indeed better > this way to avoid creating servers with bad certs. OK millert@ for this version - todd

Re: passwd: fix error paths and undefined behaviour

2023-05-08 Thread Todd C . Miller
On Mon, 08 May 2023 16:17:51 -, Tobias Stoeckmann wrote: > Turns out that we have yet another possibility to trigger a theoretical > signed integer overflow if pwd_tries is INT_MAX. This one avoids such > situation as well. OK millert@ - todd

Re: cron: better error checking of random values

2023-05-06 Thread Todd C . Miller
. OK? - todd Index: usr.sbin/cron/entry.c === RCS file: /cvs/src/usr.sbin/cron/entry.c,v retrieving revision 1.54 diff -u -p -u -r1.54 entry.c --- usr.sbin/cron/entry.c 6 May 2023 23:06:27 - 1.54 +++ usr.sbin/cron

Re: crontab: support random offsets for steps

2023-05-05 Thread Todd C . Miller
value less than eiter the step value or the difference of the high and low values (whichever is smaller). - todd Index: usr.sbin/cron/crontab.5 === RCS file: /cvs/src/usr.sbin/cron/crontab.5,v retrieving revision 1.41 diff -u -p -u

Re: passwd: fix error paths and undefined behaviour

2023-05-05 Thread Todd C . Miller
On Fri, 05 May 2023 17:05:05 -, Tobias Stoeckmann wrote: > On Fri, May 05, 2023 at 11:00:12AM -0600, Todd C. Miller wrote: > > This looks OK but I'd like to see an error message if waitpid() > > really does fail. How about something like this, which also avoid > >

Re: passwd: fix error paths and undefined behaviour

2023-05-05 Thread Todd C . Miller
tpid fails if the root user tries to > sabotage the own passwd call. Let's just handle the error case here > as well to avoid accessing undefined content of "res". This looks OK but I'd like to see an error message if waitpid() really does fail. How about something like

Re: cron: better error checking of random values

2023-05-05 Thread Todd C . Miller
urally from the random value being in num1? Also, using the % operator with the random value results in modulo bias, which we would like to avoid. If we use a random offset based on the step interval instead there is no need for the modulus. - todd

Re: cron: better error checking of random values

2023-05-04 Thread Todd C . Miller
On Thu, 04 May 2023 21:41:26 -, Klemens Nanni wrote: > On Thu, May 04, 2023 at 03:30:30PM -0600, Todd C. Miller wrote: > > This fixes two issues with the parsing of random values: > > > > 1) A random value with a step is now rejected. For example: > > > >

cron: better error checking of random values

2023-05-04 Thread Todd C . Miller
* echo max minute is 59 Whereas before it would work most (but not all!) of the time. OK? - todd diff -u -p -u -r1.53 entry.c --- usr.sbin/cron/entry.c 21 May 2022 01:21:29 - 1.53 +++ usr.sbin/cron/entry.c 4 May 2023 21:19:40 - @@ -498,12 +498,17 @@ get_range(bitstr_t

crontab: remove tmp file on seteuid() failure

2023-05-04 Thread Todd C . Miller
Fix a bug introduced in rev 1.86 (fchown removal). Currently, if the second seteuid(2) were to fail (not really possible) we would leave a temporary file in the spool dir. This will be ignored by cron but we still want to clean it up. - todd Index: usr.sbin/cron/crontab.c

Re: crontab: support random offsets for steps

2023-05-04 Thread Todd C . Miller
On Thu, 04 May 2023 07:32:18 -0700, Navan Carson wrote: > Any chance the syntax could be: > > ~/20 * * * * command > > To align with how ~ is used currently. That is already a valid syntax, though not a terribly useful one. It currently results in a random number with a step of 20. - todd

crontab: support random offsets for steps

2023-05-03 Thread Todd C . Miller
(and reloaded). The man page bits are from job@ Opinions? Does the proposed syntax seem OK? - todd Index: usr.sbin/cron/crontab.5 === RCS file: /cvs/src/usr.sbin/cron/crontab.5,v retrieving revision 1.41 diff -u -p -u -r1.41 crontab

Re: rpki-client json.c add json_do_string()

2023-05-02 Thread Todd C . Miller
) < 0; } In this case you probably want to assign c as an unsigned char. E.g. while ((c = (unsigned char)*v++) != '\0') { ... } Or better yet just declare c as unsigned char instead of int. - todd

Re: OpenSMTPD: Don't return message body in successfull DNS reports

2023-04-20 Thread Todd C . Miller
to not include the whole message, which may > well be quite large. Make sense to me. OK millert@ - todd

pax: GNU tar base-256 size field support

2023-04-18 Thread Todd C . Miller
archive. I have not yet verified that it gets extracted correctly. If there is interest I will do some more testing. - todd Index: bin/pax/gen_subs.c === RCS file: /cvs/src/bin/pax/gen_subs.c,v retrieving revision 1.32 diff -u -p -u

Re: fix iwm/iwx updatechan callbacks

2023-04-13 Thread Todd C . Miller
:xx:xx:xx:xx:xx though I don't think my AP switches channel widths. - todd

Re: OF_getpropstr()

2023-04-08 Thread Todd C . Miller
) is now being called with buflen -1, which can avoid one > extra character of processing effort for a long input string. I think that will be wrong for the "name" property. From sys/dev/ofw/fdt.c:OF_getprop if (len < 0 && strcmp(prop, "name") == 0) { data = fdt_node_name(node); if (data) { len = strlcpy(buf, data, buflen); ... So passing in buflen is probably correct. - todd

Re: csh.1 markup fix

2023-03-30 Thread Todd C . Miller
self. Use an in-line Oo ... Oc instead, ok? OK millert@ - todd

Re: [patch] usr.bin/mg/region.c: Set default shell path if SHELL is NULL

2023-03-28 Thread Todd C . Miller
On Tue, 28 Mar 2023 16:19:42 +0200, Omar Polo wrote: > sigh... forgot to advance the pointer after strrchr otherwise argv[0] > would have been /ksh instead of "ksh". OK millert@ for this version. - todd

Re: [patch] usr.bin/mg/region.c: Set default shell path if SHELL is NULL

2023-03-27 Thread Todd C . Miller
"sh" accordingly to $SHELL. It might be best to use the basename of the actual shell for argv[0]. Our ksh for instance has slightly different behavior when invoked as sh. OK millert@ for the diff as-is. - todd > Index: region.c >

Re: recv.c: consistency wrt NULL for pointers

2023-03-25 Thread Todd C . Miller
On Sat, 25 Mar 2023 20:13:35 +0100, Otto Moerbeek wrote: > Last arg also is a pointer, so pass NULL. Looks like it's been that way since the initial CSRG commit. OK millert@ - todd

smtpd: simplify token name extraction for %{name}

2023-03-19 Thread Todd C . Miller
itly NUL-terminate token. This results in less code and is more easily audited. I've also removed the duplicate check for *(pbuf+1) != '{'. OK? - todd Index: usr.sbin/smtpd/mda_variables.c === RCS file: /cvs/src/usr.sbin/sm

Re: syslogd udp remote logging eacces

2023-03-16 Thread Todd C . Miller
ackets and your fix pf.conf, syslogd > still does not send messages to remote syslog server. > > Better continue trying also in that case. It restores pre-6.5 > behavior. OK millert@ - todd

Re: ssh nits

2023-03-08 Thread Todd C . Miller
On Wed, 08 Mar 2023 09:02:08 -0600, joshua stein wrote: > In the non-fail case, done is set to NULL and then free()d. > free(NULL) is legal but maybe worth removing? Please leave this as-is. I don't think it is worth appeasing cppcheck in this case. > diff --git usr.bin/ssh/scp.c usr.bin/ssh/

Re: ps(1): fix command alignment

2023-03-07 Thread Todd C . Miller
utput OK millert@ - todd

Re: mountd: no need for critical sections

2023-03-02 Thread Todd C . Miller
ERM to mountd(8), it should be done > manually as there is too much involved with RPC daemons to make it > automagic. > > Can this be flipped so `rcctl stop mountd' works again? I don't think anything has changed in that respect. However, I'm not sure why this was disabled in the first place. - todd

mountd: no need for critical sections

2023-03-01 Thread Todd C . Miller
The SIGHUP handler only sets a flag these days, there is no longer any need to block it while using the exports list. OK? - todd Index: sbin/mountd/mountd.c === RCS file: /cvs/src/sbin/mountd/mountd.c,v retrieving revision 1.90

Re: mountd: potential use of uninitialized stack data

2023-02-22 Thread Todd C . Miller
is set. Also, there is no reason to use a critical section now that the SIGHUP handle just sets a flag. Something like this (untested), should be fine. It needs testing by someone who actually uses NFS though... - todd Index: sbin/mountd/mountd.c

Re: llvm-strip vs ld.bfd (at least on i386): SIGABRT in sys_execve

2023-02-15 Thread Todd C . Miller
On Wed, 15 Feb 2023 09:03:55 -0700, "Todd C. Miller" wrote: > It should not be removing .shstrtab. What happens if you tell > llvm-strip to preserve .shstrtab? E.g. --keep-section .shstrtab? Nevermind, I misread the readelf output, the stripped binary does actually have .shstrtab. - todd

Re: llvm-strip vs ld.bfd (at least on i386): SIGABRT in sys_execve

2023-02-15 Thread Todd C . Miller
It should not be removing .shstrtab. What happens if you tell llvm-strip to preserve .shstrtab? E.g. --keep-section .shstrtab? - todd

Re: Update share/locale/ctype/en_US.UTF-8.src to Unicode 14.0.0

2023-02-15 Thread Todd C . Miller
On Tue, 14 Feb 2023 17:47:00 -0800, Andrew Hewus Fresh wrote: > With the perl update, we get a new version of unicode available to > update this file as well. This was just running the script with the new > perl version. OK millert@ - todd

Re: remove reference to auth_getchallenge

2023-02-05 Thread Todd C . Miller
On Sun, 05 Feb 2023 10:43:58 -0500, aisha wrote: > The auth_getchallenge function doesn't seem to exist in the code base. > OK to remove this reference? Yes, that should be removed. OK millert@ - todd

Re: strptime.c

2023-01-29 Thread Todd C . Miller
Unfortunately we cannot use strtonum(3) here since there may be non-digit characters following the number. So, strtoll(3) it is then. - todd Index: lib/libc/time/strptime.c === RCS file: /cvs/src/lib/libc/time/strptime.c,v

Re: strptime.c

2023-01-26 Thread Todd C . Miller
appear to be insufficient. My inclination is to just convert everything to use strtonum(3). - todd

Re: strptime.c

2023-01-26 Thread Todd C . Miller
ms > odd?) It just returns a boolean value, 1 for OK, 0 for not OK. There is a result parameter for the output value. The code is effectively the same as _conv_num. I dislike that it uses int64_t instead of time_t though. - todd

Re: strptime.c

2023-01-26 Thread Todd C . Miller
Is there a reason you didn't just change the gmtime_r() in the 's' case to localtime_r()? That seems like the simplest fix. Using strtol() for what may be a 64-bit value on an 32-bit system looks wrong. - todd

Re: mem.4: be more accurate about securelevel

2023-01-20 Thread Todd C . Miller
especially in > our world where so much other dangerous stuff has been stopped. I wonder if it makes sense to have a version of sysctl.conf that only gets used for the next reboot and then is removed, kind of like /etc/rc.firsttime. Maybe call it /etc/sysctl.once. - todd

Re: Inconsistent isdigit(3) man page

2023-01-20 Thread Todd C . Miller
On Fri, 20 Jan 2023 09:32:38 -0700, Bob Beck wrote: > So isdigit(3) says in the first paragraph that > > 'The complete list of decimal digits is 0 and 1-9, in any locale.' > > Later on it says: > > 'On systems supporting non-ASCII single-byte character encodings, > different c arguments may corres

Re: Remove remnants of removed diff -l option

2023-01-04 Thread Todd C . Miller
On Wed, 04 Jan 2023 13:13:28 -0800, Nathan Houghton wrote: > This patch removes a few remnants of the unsupported diff -l > option from diff.c and the diff manual page. > > The diff.c usage() print is already correct, so no changes are > needed there. Thanks, committed. - todd

Re: [PATCH] Correctly (per POSIX) round up df usage percentage

2023-01-01 Thread Todd C . Miller
On Mon, 29 Aug 2022 13:51:13 +0200, =?utf-8?B?0L3QsNCx?= wrote: > In that case, how about this scissor-patch? > It has the added benefit of removing the existing floating-point usage. That version looks good to me, committed. - todd

Re: df.1: document that -P disables BLOCKSIZE

2022-12-31 Thread Todd C . Miller
Updated version. I kept "The BLOCKSIZE environment variable" in the -P description since it is the first time the man page metions BLOCKSIZE. - todd Index: bin/df/df.1 === RCS file: /cvs/src/bin/df/df.1,v retrieving rev

Re: ssh: progress meter: prefer setitimer(2) to alarm(3)

2022-12-31 Thread Todd C . Miller
), systems that already implement it will not remove it. So I think the only concern is some theoretical future POSIX system. - todd

df.1: document that -P disables BLOCKSIZE

2022-12-31 Thread Todd C . Miller
In POSIX mode, df(1) does not honor the BLOCKSIZE environment variable. Any comments on the wording? - todd Index: bin/df/df.1 === RCS file: /cvs/src/bin/df/df.1,v retrieving revision 1.48 diff -u -p -u -r1.48 df.1 --- bin/df/df.1

Re: ssh: progress meter: prefer setitimer(2) to alarm(3)

2022-12-31 Thread Todd C . Miller
On Sat, 31 Dec 2022 10:33:26 -0500, Scott Cheloha wrote: > The progress meter in scp(1) and sftp(1) updates periodically, once > per second. But using alarm(3) to repeatedly rearm the signal causes > that update period to drift forward: OK millert@ - todd

  1   2   3   4   5   6   7   8   9   10   >