Commit Graph

13048 Commits

Author SHA1 Message Date
reinoud 7906b5d46d No need to use ceilf() when ceil() is already used 2022-04-26 13:27:24 +00:00
reinoud 1cb1a07c94 Fix endian bug in makefs for udf 2022-04-26 13:26:30 +00:00
martin 18183f70fd Make default installations a bit more secure:
- push a bit harder for setup of a root password
 - simplify/clarify manual entropy setup
 - visit the entropy setup (on machines where it is needed) on the
   default path through sysinst
2022-04-21 17:30:15 +00:00
andvar f84252b461 fix various typos in comments and log messages. 2022-04-16 18:15:20 +00:00
martin 1e0c64ad24 Fix invalid msg_fmt_table_add() call, pointed out by Andreas Gustafsson. 2022-04-14 15:48:31 +00:00
andvar 2cf3f970af s/serivce/service/ in comments. 2022-04-11 20:57:37 +00:00
andvar 75d2abaeb1 fix various typos in comments and output/log messages. 2022-04-10 09:50:44 +00:00
riastradh 2773c1b540 makefs(8): Fix tool build -- no libutil DPADD if HOSTPROG. 2022-04-10 09:22:35 +00:00
riastradh b9ccfe96a1 makefs(8): Needs -lm for ceil in udf as a host tool too. 2022-04-09 14:38:47 +00:00
riastradh bf2ad72489 makefs(8): Nix trailing whitespace.
Computed by machine, eyeballed by hand, so to speak.
2022-04-09 10:05:35 +00:00
andvar 2fa7e14158 fix various typos, mainly in comments, but also log messages, docs, game text. 2022-04-08 10:17:52 +00:00
andvar 2e9df72ec3 fix various typos in comments. 2022-04-07 19:33:37 +00:00
hauke 56fc4047d2 udf.c uses math library functions. 2022-04-06 22:25:00 +00:00
wiz 374cb9be67 makefs: fix some typos 2022-04-06 13:44:25 +00:00
wiz 1baa92514a new sentence, new line 2022-04-06 13:39:06 +00:00
reinoud 8f4e1cd991 Refactor and rewrite of newfs_udf(8) and makefs(8) (-t udf) with a shared
section for fsck_udf(8).

Newfs_udf and makefs support predefined disc image profiles, harddisc
partitions (disklabel and wedges on all generic block devices) and all optical
media types on CD/DVD/BD writers.

Newfs_udf and makefs now also support formatting of UDF 2.50 with a metadata
partition.
2022-04-06 13:29:15 +00:00
gutteridge f2240c734a makemandb.c: fail sooner if man page dirs can't be found
There's no point initializing database state if we're then going to
fail to locate any man page sources. Make all the initial state checks
contiguous for simplicity and readability. Also, free the variable
"command" on the error path, and correct the error message.
2022-04-06 03:23:38 +00:00
andvar e82c4d9bb4 fix various typos, mainly in comments. 2022-04-04 19:33:44 +00:00
mlelstv 2c701485e4 Avoid integer overflow on systems with 32bit disk addresses. 2022-04-02 19:16:49 +00:00
andvar a41f6947a1 fix few typos for word "previous(ly)" in comments. 2022-03-23 13:06:06 +00:00
hgutch 0d7f3d7673 Make sure daddr_t is a 64 bit type when building tools.
(see also PR sw-bug/56742 ).
2022-03-06 08:31:54 +00:00
ozaki-r 7b24996912 mount_9p: check returned type for Tread 2022-03-02 07:48:20 +00:00
ozaki-r ab2dc16550 mount_9p: fix writing to a file opened with write-only mode
With the page cache, writing data to a file may demand to read contents
from a storage to fill a page in the page cache first.

Opening a file with write-only mode by a user lets a mount_9p process
open a file with write-only mode too at a 9p server.  Thus, a read
request to the file from the page cache fails.

So we need to open a file always with read mode (internally) even if it
is opened with write-only mode by a user.

Note that the change doesn't mean that mount_9p allows users to read
contents from a file that is opened with write-only mode.
2022-03-02 04:11:41 +00:00
hannken 9c423f2391 Add a marker VUSECOUNT_VGET to v_usecount that gets set whenever
vcache_vget() or vache_tryvget() succeeds.

Use it to rerun VOP_INACTIVE() if another thread ran a vget()..vrele()
cycle while we inactivated our last reference.
2022-02-17 14:39:14 +00:00
andvar c45fbc6e3a fix few typos in comments and log message. 2022-02-13 22:20:08 +00:00
andvar 474f1bbcdf s/mahine/machine/ 2022-02-13 00:30:10 +00:00
uwe 3d38e5fa92 mount_9p(8): Use full month name in previos (oops). 2022-02-11 14:10:12 +00:00
hannken 514b0270dd A component name is a counted string (cn_nameptr, cn_namelen),
not a zero terminated string cn_nameptr.

Change the following operations to work with counted strings:

v7fs_file_lookup_by_name()
v7fs_file_allocate()
v7fs_file_deallocate()
v7fs_directory_add_entry()
v7fs_directory_remove_entry()
v7fs_file_rename()
v7fs_file_link()
v7fs_dirent_filename()

Adapt all vnode operations with component names as argument.
2022-02-11 10:55:15 +00:00
martin d24f36fab5 x86: fix previous: in the UEFI case copy the bootloaders from install
media during initial installation, but use the (by then: updated)
files from the target disk for system upgrades.
2022-02-10 16:11:41 +00:00
uwe 65d9e41502 mount_9p(8): document the new -C option. 2022-02-10 13:05:07 +00:00
ozaki-r 9468ae1a74 mount_9p: don't cache path names by default
Caching path names doesn't handle file changes by host, which is
not expected for normal usages.  So turn it off by default.

Instead, -C option is added to turn it on.

Patch from k-goda@IIJ with my tweaks
2022-02-10 09:29:39 +00:00
rillig 3afd224e52 ldpd: remove unused bit-field member from anonymous union
The struct common_hello_tlv contained an anonymous union, which is a C11
feature.  That union contained a bit-field, which is very unusual since
the C standards answer basically all interesting questions about
bit-fields in unions with "implementation-defined" or "unspecified".
GCC passes these questions further down by saying "Determined by ABI".

This was the only occurrence of a bit-field union member in the whole
NetBSD tree, and it caused the lint diagnostic 41 to be downgraded from
error to warning on 2021-09-17 since this exotic construct is allowed by
the C standards but practically unused.

No binary change.
2022-02-07 02:35:09 +00:00
mrg 9eba1842f2 allow "cpuN" as well as "N" to specific a CPU.
update usage to include a change i made from 2015 to allow multiple
CPUs to be operated on at the same time for most commands.
2022-02-01 10:45:02 +00:00
martin fade124bc6 Do not defer wedge deletions when we have nothing mounted.
Define and use a constant for maximum disk name length.
2022-01-30 11:58:29 +00:00
martin 4204f81037 When upgrading, update the boot code post extraction from
the updated target file system.
2022-01-29 16:01:16 +00:00
martin 8bb96d39e3 Try to get rid of all wedges we created (after unmounting). 2022-01-29 15:32:49 +00:00
msaitoh 6f3942e76a Decode Intel Hybrid Information Enumeration (CPUID Fn0000_001a). 2022-01-29 08:20:45 +00:00
wiz 58fed2b507 sysinst: sync usage with man page 2022-01-28 19:38:51 +00:00
wiz d72710ea39 Sort options and their descriptions. 2022-01-28 19:36:00 +00:00
martin cfebcbba29 Document the missing command line options. 2022-01-28 19:28:08 +00:00
martin 3b7d675b40 Add an option to set the directory where we look for message catalogs. 2022-01-28 19:27:43 +00:00
msaitoh 4e642f75a7 Remove debug code and simplify. No functional change. 2022-01-27 09:53:43 +00:00
andvar 492c086f0a s/begining/beginning/ in comments and messages. 2022-01-24 09:14:36 +00:00
christos f0fde9902f PR/56657: Juraj Hercek: Add plainrsa-gen utility mentioned in racoon.conf(5)
and fix it for OpenSSL 1.1
2022-01-23 14:35:44 +00:00
andvar ae6f7bdf98 s/comatible/compatible/ 2022-01-21 21:39:32 +00:00
lukem 4c6c9aca34 etcupdate: fix error message for unimplemented option
noted by rudolf on source-changes-d
2022-01-17 08:47:03 +00:00
lukem e60c82181d etcupdate(8): consistent -h and -? text 2022-01-14 22:55:10 +00:00
msaitoh a80eb31137 Add Alder Lake, Rocket Lake and Sapphire Rapids. From the latest Intel SDM. 2022-01-13 16:02:44 +00:00
nia 7a9185329c sysinst(8): use scan_ssid=1 so hidden wifi networks can be used 2022-01-13 14:47:11 +00:00
nia d290f6b174 sysinst(8): Add a "data" argument to do_ifreq that is set after the
ifr struct is zeroed.

This allows us to simplify the code by not having 2x socket creation
code for checking whether interfaces are wireless.
2022-01-11 09:44:49 +00:00
nia 8fa39f5e34 sysinst(8): Avoid asking Wi-Fi questions about non-Wi-Fi devices. 2022-01-10 22:14:01 +00:00
nia f5d6f24e01 sysinst(8): Add initial support for connecting to Wi-Fi networks
by spawning wpa_supplicant.

Reviewed by martin.
2022-01-10 12:17:48 +00:00
martin 7af59e24ef Install sysinst message catalogs. 2022-01-09 16:39:50 +00:00
wiz 9e40d57217 Match verb forms. 2022-01-09 07:40:11 +00:00
lukem d638a288e8 etcupdate: add -? for help. improve option errors
Support -? to show help.
Implemented using getopts "leading colon optstring" feature.
Improve error messages for unknown options and missing arguments.
Change usage-related errors from stdout to stderr.
Keep all other errors to stdout for now.
2022-01-09 03:33:26 +00:00
lukem 4e66222659 etcupdate: -h to stdout. improve help
Send -h help to stdout not stderr, and exit 0 not 1.
Show options alphabetically.
Use UPPER_CASE instead of lowercase as the convention for argument names.
2022-01-09 03:31:23 +00:00
lukem 66a1e9e07c etcupdate: style change: function { on new line 2022-01-09 03:25:38 +00:00
lukem 3a170d5028 postinstall(8); add -?. expand operation usage 2022-01-08 23:57:32 +00:00
lukem 09a44b8875 postinstall: improve -s usage
Reword -s SRC_ARG to be a bit clearer as to the variations, and sync
more with postinstall(8).
2022-01-08 23:30:41 +00:00
lukem 41e938b0ec postinstall: tweak -a and -m usage 2022-01-08 23:07:17 +00:00
lukem f08fadb8b9 postinstall: add -? to usage 2022-01-08 23:04:11 +00:00
lukem 41d92dcdfa postinstall: add -?. improve option errors
Support -? to show help.
Implemented using getopts "leading colon optstring" feature.
Improve error messages for unknown options and missing arguments.
2022-01-08 06:58:40 +00:00
lukem ae7cd0c965 postinstall: usage improvements
Show options alphabetically.
Use UPPER_CASE instead of lowercase as the convention for argument names.
Provide per-OPERATION argument usage.
Implement options alphabetically.
2022-01-08 06:57:34 +00:00
lukem bbb43df076 postinstall: improve validation and help
Validate the operation and items before extracting any etc.tgz,
so that help or errors are displayed quicker, for a better user
experience.

Style:
- Rename todo to ITEMS.
- Order processing of list after check.
- Ensure DIFF_OPT is initialised, for consistency.
2022-01-08 06:56:43 +00:00
lukem b318894e7e postinstall: style tweaks
Fix ... in comments and internal errors.
Sort variables declared at top of main(), for easier review.
2022-01-08 06:55:13 +00:00
lukem f4a06ed268 postinstall: help to stdout. usage tweaks
When invoked as "help" or "usage", send the usage to stdout
instead of stderr, so that it's easier to pipe to a pager.

Explicitly warn that the operation is missing.

Tweak the usage; "operation" instead of "op", no need for [] around ...
2022-01-08 06:53:58 +00:00
lukem e2ecc8d595 postinstall: fix x11 migration of /usr/X11R6/lib/X11
Fix the x11 check if /usr/X11R6/lib/X11/* needs to migrate to /etc/X11/*
by ensuring that the former actually is detected.

Avoids false migration errors for paths such as /fs if /usr/X11R6
doesn't exist, such as:
	x11 check:
	        Migrate /fs to /etc/X11/fs

The original implemention handled this correctly, but the bug
crept in postinstall 1.110 on 2010/11/21.
2022-01-07 01:03:02 +00:00
ryo 0d457a2cc0 display the raw value of each field when -v specified 2022-01-06 18:00:58 +00:00
ryo 1a9455cf02 fix typo 2022-01-06 17:59:15 +00:00
ryo 57817f981a Added more field definitions for ARMv8.x system registers 2022-01-06 09:01:16 +00:00
ryo bf1b93949b macroify. NFC. 2022-01-06 08:46:43 +00:00
ryo 63bdacd840 fix ID_AA64ISAR0_EL1.ATOMIC field definition 2022-01-05 19:53:32 +00:00
martin 1219ba360c Now that (semi-)manual entropy setup may happen outside of the main
install/upgrade path, we need to (re-)write the entropy seed file
afterwards - the earlier written one would not have an entropy estimate
if we get here.
2022-01-03 11:44:02 +00:00
andvar 427b92d9af s/filname/filename/ 2021-12-21 21:28:31 +00:00
andvar 1cb7819f04 fix various typos in comments. 2021-12-12 22:20:52 +00:00
nia 8bb8291bb8 Fix copypasto in comment. 2021-12-12 14:33:13 +00:00
andvar 0e6a3361ec fix typos in word "request(s)". 2021-12-12 09:00:07 +00:00
andvar eb03b08ccf fix typos in word "operation(s)". 2021-12-12 08:49:57 +00:00
mrg d914a3c1b9 remove clause 3 from all my licenses that aren't conflicting with
another copyright claim line.  again.  (i did this in 2008 and then
did not update all of my personal templates.)
2021-12-11 19:24:18 +00:00
nia d855902010 useradd(8): Recognize Argon2 passwords as "valid" when they are given
on the command line.

Reported by Robert Nestor on current-users@.
2021-12-10 20:06:29 +00:00
msaitoh 1a03346fd7 s/OCCURED/OCCURRED/ in a debug message. 2021-12-10 11:09:52 +00:00
msaitoh 9833ff7c7e Print 1GB TLB entry at the same leve's line.
Example:
  before:
    cpu0: ITLB: 128 4KB entries 8-way, 2M/4M: 8 entries
    cpu0: DTLB: 64 4KB entries 4-way
    cpu0: L2 STLB: 4K/2M: 1024 entries
    cpu0: L1 1GB page DTLB: 4 1GB entries 4-way

  after:
    cpu0: ITLB: 128 4KB entries 8-way, 2M/4M: 8 entries
    cpu0: DTLB: 64 4KB entries 4-way, 4 1GB entries 4-way
    cpu0: L2 STLB: 4K/2M: 1024 entries
2021-12-09 14:23:06 +00:00
msaitoh 813cf550c4 s/trival/trivial/ in comment. 2021-12-05 08:18:18 +00:00
msaitoh 18b2a94814 s/systme/system/ in comment. 2021-12-05 08:11:39 +00:00
wiz d07955d934 preceds -> precedes 2021-12-05 08:03:32 +00:00
msaitoh 264979d70a s/rather then/rather than/ in comment. 2021-12-05 07:25:11 +00:00
msaitoh 79d22ebfb9 s/preceed/preced/ in comment. 2021-12-05 07:13:48 +00:00
msaitoh 18dd566a90 s/preceed/preced/ 2021-12-05 07:11:56 +00:00
msaitoh 83cf79d6fc s/partiton/partition/ 2021-12-05 07:06:17 +00:00
msaitoh 086f28ae4c s/maping/mapping/ 2021-12-05 05:01:50 +00:00
msaitoh b5ffb2e0d6 s/filesytem/filesystem/ in comment. 2021-12-05 04:47:17 +00:00
msaitoh 51f4f8be61 s/filesytem/filesystem/ 2021-12-05 04:46:33 +00:00
msaitoh 1e4f69d0ff s/existance/existence/ in comment. 2021-12-05 04:42:54 +00:00
msaitoh 5e4e622281 auxilary -> auxiliary 2021-12-05 04:25:33 +00:00
msaitoh 344f0d1e04 s/exisit/exist/ in comment. 2021-12-05 02:52:17 +00:00
pho 1f6f9b8380 librefuse: Preparation of a proper API versioning; no more #ifdef woes in user code
The goal is to fully support FUSE API version 3.0 while maintaining
API/ABI compatibility with code written for 2.6 (or even older).

* <fuse.h> now emits a compiler warning if it's included without
  defining FUSE_USE_VERSION. It had been silently defaulted to the
  latest supported version prior to this change. This is permissive
  compared to the original FUSE, as it emits an error instead.

* <fuse.h> now emits a warning if FUSE_USE_VERSION is higher than what
  can be provided.

* Added a macro FUSE_MAKE_VERSION(maj, min). It was missing from
  librefuse <fuse.h>.

No actual API updates have been made (yet).
2021-12-04 06:42:39 +00:00
andvar d1c4e519a3 fix various typos in comments, log messages and documentation. 2021-12-03 13:27:37 +00:00
andvar a5298dfcbd bta2dpd(8): s/conection/connection/ 2021-12-02 21:59:22 +00:00
andvar 95c774699b btconfig(8): s/fomat/format/ and article fix. 2021-12-02 21:55:22 +00:00
christos 3d96da2095 PR/56530: RVP: use ioctl to get the partition size if possible (avoids SEGV) 2021-12-02 14:26:42 +00:00