1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.bin
schwarze 7bda13b189 When parsing a macro argument results in delayed escape sequence
expansion, re-check for all contained escape sequences whether they
need delayed expansion, not just for the particular escape sequences
that triggered delayed expansion in the first place.  This is needed
because delayed expansion can result in strings containing nested
escape sequences recursively needing delayed expansion, too.

This fixes an assertion failure in krb5_openlog(3), see:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266882

Thanks to Wolfram Schneider <wosch at FreeBSD> for reporting the bug
and to Baptiste Daroussin <bapt at FreeBSD> for forwarding the report.
2023-10-21 17:10:12 +00:00
..
apply
arch
at Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
aucat typo: filed -> failed; ok ratchov@ 2023-03-27 15:36:18 +00:00
audioctl shorten SYNOPSIS from three versions to two (me) then one (ratchov), 2023-01-09 17:13:46 +00:00
awk Correctly reset the goto table for a state. 2023-10-06 22:31:21 +00:00
banner
basename
bc Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
bgplg Add ASPA to Looking Glass 2023-02-03 13:10:57 +00:00
biff userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
cal userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
calendar calendar.canada: sync the entry for victoria day with that of calendar.holiday. 2023-05-15 16:22:07 +00:00
cap_mkdb userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
cdio Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
chpass Replace use of the old BSD st_*timespec members in struct stat with 2023-08-11 04:45:05 +00:00
cmp For open/openat, if the flags parameter does not contain O_CREAT, the 2021-10-24 21:24:15 +00:00
col userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
colrm userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
column spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
comm userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
compress Replace use of the old BSD st_*timespec members in struct stat with 2023-08-11 04:45:05 +00:00
cpp
crontab
csplit Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
ctags userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
ctfconv remove duplicate includes 2023-04-19 12:58:15 +00:00
ctfdump Use size_t for the length parameters, not off_t. 2022-08-14 15:01:18 +00:00
cu remove unused Pp macro; 2023-10-03 05:20:38 +00:00
cut Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
cvs cvs_file_copy() used futimes(), but only set the tv_sec fields, 2023-08-11 04:48:14 +00:00
dc Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
deroff Use a dynamically-allocated line buffer and resize as needed. 2023-09-27 21:06:33 +00:00
diff Delete remnants of removed "diff -l" option. 2023-01-05 00:00:44 +00:00
diff3
dig add void to function decls with no args 2023-09-06 04:57:28 +00:00
dirname
doas Improve setenv markup 2023-05-03 14:29:57 +00:00
du userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
encrypt unveil _PATH_LOGIN_CONF_D 2022-02-10 13:06:46 +00:00
env
expand userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
false
fgen Eduardo Horvath agreed to rescind clause 3 and 4 in 2023-01-04 14:58:04 +00:00
file spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
find Replace use of the old BSD st_*timespec members in struct stat with 2023-08-11 04:45:05 +00:00
finger finger/mail: two trivial functions were missed in earlier ansi passes 2023-02-08 08:24:29 +00:00
fmt
fold
from
fstat Remove unused struct fileops field fo_poll and callbacks. 2022-06-20 01:39:44 +00:00
ftp revert makefile change included by mistake in previous 2023-06-28 17:36:51 +00:00
gencat spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
getcap Fix the -f option when passed multiple files. 2022-02-09 15:53:35 +00:00
getconf userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
getent avoid arpa/nameser.h by improving the inet_pton/gethostbyaddr code to 2021-10-11 14:28:26 +00:00
getopt
gprof spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
grep - use Fl instead of Ar for print0; from josiah frentsos 2023-01-04 07:33:00 +00:00
head head(1): check for stdio errors 2022-02-07 17:19:57 +00:00
hexdump userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
htpasswd man pages: add missing commas between subordinate and main clauses 2022-03-31 17:27:13 +00:00
id fail when an argument is given on 'id -R' 2023-05-30 16:44:16 +00:00
indent spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
infocmp Update ncurses and associated libraries (form, panel, menu) to 2023-10-17 09:52:08 +00:00
ipcrm Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
ipcs
join userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
jot update usage() to reflect s->step change; 2021-08-13 12:37:28 +00:00
kdump list tracepoints directly in kdump.1 instead of pointing to ktrace.1 2023-09-30 13:03:40 +00:00
keynote
kstat s/0/instance/ in usage to match manual synopsis 2022-07-10 19:51:37 +00:00
ktrace list tracepoints directly in kdump.1 instead of pointing to ktrace.1 2023-09-30 13:03:40 +00:00
lam Fixed-size NOFILE_MAX (from sys/param.h of course) array is crazy, so 2021-12-03 15:15:22 +00:00
last For open/openat, if the flags parameter does not contain O_CREAT, the 2021-10-24 21:24:15 +00:00
lastcomm for process kills due to execve from non-pinned syscall address, export 2023-02-21 14:31:07 +00:00
ldap 'e' is no longer an optional element for ober_scanf_elements. 2022-03-31 09:03:48 +00:00
leave
less spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
lex delete whitespaces that end up in output files 2023-10-21 14:09:15 +00:00
libtool finish v5.36, UList was a bit more work 2023-07-10 09:29:48 +00:00
lndir
locale Actually, LANG only set the default. 2023-03-05 18:55:34 +00:00
locate Make LLVM 15 happier by changing from K&R to ANSI prototypes 2023-04-28 20:22:35 +00:00
lock
logger userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
login Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
logname If a command or interface first appeared in PWB/UNIX, UNIX System III or 2022-07-25 02:25:55 +00:00
look userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
lorder
m4 spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
mail Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
make unifdef HAS_INLINES 2023-09-05 14:05:41 +00:00
mandoc When parsing a macro argument results in delayed escape sequence 2023-10-21 17:10:12 +00:00
mesg userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
mg reinstate space-to-tabstop entry in the manpage 2023-10-16 08:33:16 +00:00
midicat midicat(1): use err(3) everywhere 2022-12-02 22:36:34 +00:00
mixerctl
mkdep
mklocale
mktemp man pages: add missing commas between subordinate and main clauses 2022-03-31 17:27:13 +00:00
nc netcat: avoid issuing syscalls on fd -1 2023-08-14 08:07:27 +00:00
netstat Fix netstat output of uses of current SYN cache left. 2023-09-04 23:00:36 +00:00
newsyslog Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
nfsstat Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
nice
nl userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
nm userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
nohup
openssl Drop unused conf, pem, and x509 headers, add unistd for pledge 2023-07-29 17:15:45 +00:00
pagesize
passwd Prevent signed integer overflow 2023-05-08 17:15:43 +00:00
paste userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
patch Partially fix interactive mode in patch 2023-07-19 13:26:20 +00:00
pctr
pkg-config small speed increase: do not bother substituting variables if there are none. 2023-09-22 07:29:14 +00:00
pkill A couple commands don't need sys/param.h, but they do need sys/signal.h 2021-09-01 15:54:40 +00:00
pr Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
printenv
printf
quota
radioctl
rcs Switch rcs_{get,set}_mtime() from returning and taking a time_t to 2023-08-11 05:02:21 +00:00
rdist spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
rdistd spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
readlink Provide realpath(1) 2021-10-13 15:04:53 +00:00
realpath Provide realpath(1) 2021-10-13 15:04:53 +00:00
renice renice(8): don't succeed after 256 errors 2022-08-12 00:24:07 +00:00
rev rev(1): drop "rpath" promise in no-file branch. 2022-02-08 17:44:18 +00:00
rpcgen Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
rpcinfo Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
rs
rsync Implement --size-only and --ignore-times 2023-04-28 10:24:38 +00:00
rup
rusers
rwall
script note the -c runs sh -c; from nabijaczleweli 2022-01-03 21:49:37 +00:00
sdiff If a command or interface first appeared in PWB/UNIX, UNIX System III or 2022-07-25 02:25:55 +00:00
sed sed: add missing void to avoid -Wstrict-prototype with clang 15 2023-02-08 08:18:11 +00:00
sendbug Add more missing archs to "categories": aarch64, mips64el and powerpc64 2022-04-10 17:47:54 +00:00
seq make history less verbose 2023-09-21 13:51:50 +00:00
shar
showmount we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-Reno 2022-07-30 07:19:30 +00:00
signify crank to 7.4-beta 2023-09-18 13:16:13 +00:00
skey man pages: add missing commas between subordinate and main clauses 2022-03-31 17:27:13 +00:00
skeyaudit
skeyinfo
skeyinit man pages: add missing commas between subordinate and main clauses 2022-03-31 17:27:13 +00:00
sndioctl Fix a typo in a comment and spacing 2023-01-31 21:38:01 +00:00
sndiod spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
snmp spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
sort man pages: add missing commas between subordinate and main clauses 2022-03-31 17:27:13 +00:00
spell spelling fixes; from paul tagliamonte 2022-12-26 19:16:00 +00:00
split Stop using MAXBSIZE to eliminate sys/param.h including (which injects a 2021-11-28 19:28:41 +00:00
ssh Move declaration of "len" into the block where it's used. This lets 2023-10-16 08:40:00 +00:00
stat Prefer the POSIX standard st_*tim struct timespec members over the 2023-08-06 19:36:13 +00:00
su Denote multiple arguments with 'arg ...' not 'args' 2022-12-22 19:53:22 +00:00
systat Drop GCC_PRINTFLIKE() at function definition 2023-10-10 09:30:06 +00:00
tail userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
talk
tcpbench Remove unused variable kerr. 2023-05-22 12:53:04 +00:00
tee tee(1): explicitly check read(2) return value for 0 and -1 2023-03-04 00:00:25 +00:00
telnet telnet: fix prototypes for two signal handlers to make clang 15 happy 2023-02-08 08:22:44 +00:00
tftp Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
tic Update ncurses and associated libraries (form, panel, menu) to 2023-10-17 09:52:08 +00:00
time time(1): miscellaneous style(9) tweaks 2023-10-15 18:20:25 +00:00
timeout timeout(1): sig_atomic_t variables must also be 'volatile'; ok job@ 2023-01-13 06:53:04 +00:00
tmux Switch to tiparm_s (added in ncurses 6.4-20230424) instead of tparm, 2023-10-17 09:55:32 +00:00
top Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
touch touch(1): don't leak file descriptor if futimens(2) fails 2022-01-29 00:06:26 +00:00
tput Update ncurses and associated libraries (form, panel, menu) to 2023-10-17 09:52:08 +00:00
tr Straightforward conversion form K&R to ANSI function definitions 2023-05-04 16:08:29 +00:00
true
ts fix unintended sizeof pointer introduced in 1.10 2022-10-11 07:36:27 +00:00
tset Update ncurses and associated libraries (form, panel, menu) to 2023-10-17 09:52:08 +00:00
tsort
tty userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
ul
uname Document the OpenBSD-specific output format. 2023-10-09 19:28:42 +00:00
unexpand
unifdef unifdef appeared in 4.1c before 2.9 2023-08-13 02:20:23 +00:00
uniq uniq(1): miscellaneous style(9)-ish stuff 2022-01-01 18:20:52 +00:00
units correct the entry for chilepeso; from jan stary 2023-04-12 15:26:26 +00:00
unvis userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
usbhidaction Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
usbhidctl Delete obsolete /* ARGSUSED1 */ lint comments. 2023-03-07 17:43:59 +00:00
users userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
uudecode Use BUFSIZ instead of PATH_MAX. Since it doesn't anything with a file 2022-08-30 16:06:09 +00:00
uuencode
vacation man pages: add missing commas between subordinate and main clauses 2022-03-31 17:27:13 +00:00
vi Treat consecutive paragraph indicators as different paragraphs 2023-09-07 11:17:32 +00:00
vis userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
vmstat userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
w userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
wall Switch K&R function definition to ANSI to make clang 15 happier 2023-05-02 09:51:22 +00:00
wc userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
what Delete obsolete /* ARGSUSED */ lint comments. 2023-03-08 04:43:04 +00:00
which
who remove whitespace 2021-11-11 08:48:48 +00:00
whois a whois command appeared in 4.1c before 4.3 2023-08-21 11:12:28 +00:00
write For open/openat, if the flags parameter does not contain O_CREAT, the 2021-10-24 21:24:15 +00:00
x99token
xargs remove duplicate includes 2023-04-19 12:58:15 +00:00
xinstall userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
yacc
yes
ypcat
ypmatch
ypwhich
Makefile Import ts(1) - a timestamp utility 2022-06-29 08:39:49 +00:00
Makefile.inc