summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2023-11-30Single file to stdout without "fattr"Klemens Nanni
Regardless of SMALL and other command flags, 'ftp -o - URL [file|URL ...]' only processes the first URL and exists. Only standard output is written to and modifying 'struct stat' properties as per pledge(2) "fattr" don't apply. OK millert
2023-11-30Fold identical pledge cases, '#ifndef SMALL \n if (!resume)' equals 'else'Klemens Nanni
OK millert
2023-11-28Update awk to the Nov 27, 2023 version.Todd C. Miller
2023-11-27Document -J, --omit-link-times and remove a confusing sentence fromClaudio Jeker
the -O, --omit-dir-times description. OK tb@
2023-11-27Implement --omit-link-times / -J based on the --omit-dir-times workClaudio Jeker
done by job@. OK tb@
2023-11-27The uploader tail shortcut to skip dir postprocessing should also checkClaudio Jeker
if ignore_dir_times is set. In that case preserve_times loses its meaning. OK tb@
2023-11-27Add --no-O and --no-omit-dir-times options. For some reason the realClaudio Jeker
rsync has these options and so should ours. These strange --no-XYZ options are undocumented and are there just for compatibility. OK tb@ job@
2023-11-25Update awk to the Nov 24, 2023 version.Todd C. Miller
2023-11-241. Do not put ASCII_HYPH (0x1c) into the tag file.Ingo Schwarze
That happened when tagging a string containing '-' on an input text line, most commonly in man(7) .TP next line scope. 2. Do not let "\-" end the tag. In both cases, translate ASCII_HYPH and "\-" to plain '-' for output. For example, this improves handling of unbound.conf(5). These two bugs were found thanks to a posting by weerd@.
2023-11-24Plug mem leak of msg when processing a quit message.Darren Tucker
Coverity CID#427852, ok djm@
2023-11-23Add --omit-dir-times / -OJob Snijders
OK claudio@
2023-11-23Include existing mux path in debug message.Darren Tucker
2023-11-22Piping single file to standard out needs no "proc exec"Klemens Nanni
'-o -' now means no "ftp> " shell, so no "|some cmd" files, "!some cmd" or "page" commands. OK millert
2023-11-22Do not drop into "ftp> " shell when piping to stdandard outputKlemens Nanni
'-o -' is orthogonal to an interactive prompt, yet some (malformed) URLs such as ftp://host/ would still end up there; exit after processing the first file/URL to prevent this. sthen deraadt agree OK millert
2023-11-22Update awk to the Nov 20, 2023 version.Todd C. Miller
This includes a rewrite of the fnematch() function as well as a refactoring of the sub and gsub implementation.
2023-11-21Make a few purpose things constTheo Buehler
This should allow us to constify a sizable table in libcrypto in an upcoming bump.
2023-11-20Include <dev/efi/efiio.h> to pretty print EFIIOC_* ioctlsKlemens Nanni
No base usage yet, only efivar(1) from sysutils/efivar. OK guenther
2023-11-20Sort includes, <scsi/scsi_all.h> before <dev/*>Klemens Nanni
For/OK guenther
2023-11-20set errno=EAFNOSUPPORT when filtering addresses that don't matchDamien Miller
AddressFamily; yields slightly better error message if no address matches. bz#3526
2023-11-19openssl pkcs12: rewrite without reaching into X509_ALGORTheo Buehler
We can call ASN1_item_unpack() which will end up stuffing the same arguments into ASN1_item_d2i() as d2i_PBEPARAM(). This eliminates the last struct access into X509_ALGOR outside libcrypto in the base tree. ok jsing
2023-11-19openssl ts: convert to X509_ALGOR_set0()Theo Buehler
ok jsing
2023-11-16avoid reading data when enumerating kstats.David Gwynne
this means we can reliably read the provider/instance/name/unit tuple, which should avoid "duplicate kstat entry" when multiple kstat read handlers have issues. found on a box with multiple rge interfaces, which have hardware backed kstats that can only be read when the interface is up.
2023-11-16handle printing cpu freq and volt kstat_kv typesDavid Gwynne
2023-11-15when connecting via socket (the default case), filter addresses byDamien Miller
AddressFamily if one was specified. Fixes the case where, if CanonicalizeHostname is enabled, ssh may ignore AddressFamily. bz5326; ok dtucker
2023-11-15when deciding whether to enable keystroke timing obfuscation,Damien Miller
only consider enabling it when a channel with a tty is open. Avoids turning on the obfucation when X11 forwarding only is in use, which slows it right down. Reported by Roger Marsh
2023-11-15fnematch: fix a bug that could result in extra chars being pushed back.Todd C. Miller
From Arnold Robbins. https://github.com/onetrueawk/awk/pull/213
2023-11-15fnematch: fix out-of-bounds access on EOFTodd C. Miller
fnematch() expects to store a NUL byte when EOF is encountered. However, the rewrite broke this assumption because r.len from getrune() is zero on EOF. This results in j becoming negative on EOF, causing an out-of-bounds access. It is simplest to just force r.len to 1 on EOF to copy a single NUL byte--the rune is initialized to zero even for EOF. This also fixes the call to adjbuf(). We cannot use 'k' to determine when we need to expand the buffer now that we are potentially reading more than a single byte at a time. https://github.com/onetrueawk/awk/pull/211
2023-11-15procline: only reduce mcount once per line, not once per match.Todd C. Miller
This makes "grep -m" behave like GNU grep (where the -m option originated). From Crystal Kolipe.
2023-11-14Don't strdup NULL filename.Nicholas Marriott
2023-11-14Handle NULL client (in config file) when showing a status message; alsoNicholas Marriott
copy the file when processing if-shell since it may be freed. GitHub issue 3746.
2023-11-14Use SM 2026 for Sync which is more widely supported now.Nicholas Marriott
2023-11-14This code depends on internals from net/art.h so include it explicitly.Claudio Jeker
OK bluhm@
2023-11-13Reduce the man(7) default global indentation from 7n, which was an oddityIngo Schwarze
in groff-1.01 to groff-1.22.4, to 5n for compatibility with Version 7 AT&T UNIX, 4.3BSD-Reno, groff-1.23.0, and all versions of mdoc(7). OK jmc@ millert@
2023-11-13Kill last user of ASN1_time_parse() in the treeTheo Buehler
ASN1_time_parse() was useful while OpenSSL didn't have something sort of equivalent, but now they do. Let's retire ASN1_time_parse() to internal. This will require some patching in ports, but shrug. ok beck
2023-11-13Check notBefore/notAfter validity with ASN1_TIME_to_tm(3)Theo Buehler
ok beck
2023-11-13Make sure sftp_get_limits() only returns 0 if 'limits' was initialized.Tobias Heider
This fixes a potential uninitialized use of 'limits' in sftp_init() if sftp_get_limits() returned early because of an unexpected message type. ok djm@
2023-11-11Ignore -N in "gzip -dN <in.gz" and "zcat -N in.gz"George Koehler
Have -c override -N, like other gzip implementations. Before, our -N (decompress to stored name) overrode -c (cat to stdout) and crashed with a pledge violation, because the pledge for -c excludes wpath. Guilherme Janczak reported the pledge violation in July 2022 and provided a diff to prevent it, along with a regress test. I rewrote the diff and expanded the regress. ok kn@ millert@
2023-11-10sync with NetBSD -r1.38:Jasper Lievisse Adriaanse
remove unused NULL pointer that was passed to printf %s.
2023-11-09-C/resume without "proc exec"Klemens Nanni
ftp(1) has "proc exec" to run sh(1) on interactive ! commands and filenames starting with "|"; this is orthogonal to continuing transfers using the existing file size as offsets. There seems to be no case where a) the argument is an URL, i.e. we pledge, and b) a shell is spawned somehow, so avoid these promises when resuming. bsd.port.mk(5) FETCH_CMD uses -C by default. OK millert
2023-11-09Add [-P progam] to filter dumps by basenameKlemens Nanni
[-p pid] requires knowing the PIDs beforehand, sieving through big dumps by argv[0] strings is more ergonomic. OK deraadt
2023-11-05current code no longer uses Lst_Replace not Lst_RequeueMarc Espie
so don't bother compiling them.
2023-11-03Check if a signal already has been received before entering a blockingAnton Lindqvist
read as opposed of only doing it afterwards. Issue uncovered by the mail regress tests. With claudio@ and ok millert@
2023-11-03timeout(1): align execvp(3) failure statuses with GNU timeoutScott Soule Cheloha
Align our exit statuses with those of GNU timeout in the execvp(3) failure case. Exit with 127 if the utility is not found. Exit with 126 if we cannot execute the utility for any other reason. While here, the child should _exit(2) instead of calling exit(3) via err(3). Update the manpage accordingly. With input from millert@ and deraadt@. Link: https://marc.info/?l=openbsd-tech&m=169739592322978&w=2 ok millert@
2023-11-02next-prompt can have 1 argument.Nicholas Marriott
2023-10-31Update awk to Oct 30, 2023 version.Todd C. Miller
This is really just a version number bump as we already have the fixes committed.
2023-10-30This is the OpenBSD version of Awk.Todd C. Miller
2023-10-30Minor cosmetic changes to make our awk match my github branch.Todd C. Miller
2023-10-30Include strings.h for the strncasecmp() prototype.Todd C. Miller
From upstream.
2023-10-30Do not allow combined UTF-8 characters that are too long, GitHub issueNicholas Marriott
3729.
2023-10-28substr: fix buffer overflow with utf-8 stringsTodd C. Miller
We need to use u8_strlen(), not strlen(), to compute the length. Otherwise, there may be an out of bounds write when writing the NUL terminator to set the length of the substring. https://github.com/onetrueawk/awk/pull/205