| #
7e70589b
|
| 03-Mar-2026 |
Kyle Evans <kevans@FreeBSD.org> |
libutil: take a size_t in trimdomain()
INT_MAX is already larger than a reasonable hostname might be, but size_t makes some of this easier to reason about as we do arithmetic with it. This would ma
libutil: take a size_t in trimdomain()
INT_MAX is already larger than a reasonable hostname might be, but size_t makes some of this easier to reason about as we do arithmetic with it. This would maybe not be worth it if we had to bump the soversion because of it, but libutil does symbol versioning now so we can provide a compat shim.
While we're here, fix some inconsistencies in argument names in the manpage.
Reviewed by: des Obtained from: https://github.com/apple-oss-distributions/libutil Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D54622
show more ...
|
| #
cc5276ae
|
| 06-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Fix login_setcryptfmt()
Our dummy crypt_set_format() needs to be exported, otherwise it will be resolved at link time instead of load time, preventing the real crypt_set_format() in libcryp
libutil: Fix login_setcryptfmt()
Our dummy crypt_set_format() needs to be exported, otherwise it will be resolved at link time instead of load time, preventing the real crypt_set_format() in libcrypt from replacing it when present.
PR: 288677 Fixes: 0c381b7f0570 Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D51746
show more ...
|
| #
ab1c6874
|
| 06-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Backward compatibility for expand_number()
Reimplement expand_number() in terms of expand_unsigned(), which takes a pointer to uint64_t like expand_number() did before. Provide a macro tha
libutil: Backward compatibility for expand_number()
Reimplement expand_number() in terms of expand_unsigned(), which takes a pointer to uint64_t like expand_number() did before. Provide a macro that picks the correct version based on the type of the argument.
Fixes: 2e0caa7c7e14 Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D51723
show more ...
|
| #
8d8a745c
|
| 02-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Drop auth_getval()
This function has been an empty stub for years; now that we're bumping the library version, we can finally get rid of it.
Fixes: 0c381b7f0570 Reviewed by: kib, emaste D
libutil: Drop auth_getval()
This function has been an empty stub for years; now that we're bumping the library version, we can finally get rid of it.
Fixes: 0c381b7f0570 Reviewed by: kib, emaste Differential Revision: https://reviews.freebsd.org/D51704
show more ...
|
| #
0c381b7f
|
| 02-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Add symbol versioning
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D51694
|
| #
cc5276ae
|
| 06-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Fix login_setcryptfmt()
Our dummy crypt_set_format() needs to be exported, otherwise it will be resolved at link time instead of load time, preventing the real crypt_set_format() in libcryp
libutil: Fix login_setcryptfmt()
Our dummy crypt_set_format() needs to be exported, otherwise it will be resolved at link time instead of load time, preventing the real crypt_set_format() in libcrypt from replacing it when present.
PR: 288677 Fixes: 0c381b7f0570 Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D51746
show more ...
|
| #
ab1c6874
|
| 06-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Backward compatibility for expand_number()
Reimplement expand_number() in terms of expand_unsigned(), which takes a pointer to uint64_t like expand_number() did before. Provide a macro tha
libutil: Backward compatibility for expand_number()
Reimplement expand_number() in terms of expand_unsigned(), which takes a pointer to uint64_t like expand_number() did before. Provide a macro that picks the correct version based on the type of the argument.
Fixes: 2e0caa7c7e14 Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D51723
show more ...
|
| #
8d8a745c
|
| 02-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Drop auth_getval()
This function has been an empty stub for years; now that we're bumping the library version, we can finally get rid of it.
Fixes: 0c381b7f0570 Reviewed by: kib, emaste D
libutil: Drop auth_getval()
This function has been an empty stub for years; now that we're bumping the library version, we can finally get rid of it.
Fixes: 0c381b7f0570 Reviewed by: kib, emaste Differential Revision: https://reviews.freebsd.org/D51704
show more ...
|
| #
0c381b7f
|
| 02-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Add symbol versioning
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D51694
|
| #
cc5276ae
|
| 06-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Fix login_setcryptfmt()
Our dummy crypt_set_format() needs to be exported, otherwise it will be resolved at link time instead of load time, preventing the real crypt_set_format() in libcryp
libutil: Fix login_setcryptfmt()
Our dummy crypt_set_format() needs to be exported, otherwise it will be resolved at link time instead of load time, preventing the real crypt_set_format() in libcrypt from replacing it when present.
PR: 288677 Fixes: 0c381b7f0570 Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D51746
show more ...
|
| #
ab1c6874
|
| 06-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Backward compatibility for expand_number()
Reimplement expand_number() in terms of expand_unsigned(), which takes a pointer to uint64_t like expand_number() did before. Provide a macro tha
libutil: Backward compatibility for expand_number()
Reimplement expand_number() in terms of expand_unsigned(), which takes a pointer to uint64_t like expand_number() did before. Provide a macro that picks the correct version based on the type of the argument.
Fixes: 2e0caa7c7e14 Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D51723
show more ...
|
| #
8d8a745c
|
| 02-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Drop auth_getval()
This function has been an empty stub for years; now that we're bumping the library version, we can finally get rid of it.
Fixes: 0c381b7f0570 Reviewed by: kib, emaste D
libutil: Drop auth_getval()
This function has been an empty stub for years; now that we're bumping the library version, we can finally get rid of it.
Fixes: 0c381b7f0570 Reviewed by: kib, emaste Differential Revision: https://reviews.freebsd.org/D51704
show more ...
|
| #
0c381b7f
|
| 02-Aug-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libutil: Add symbol versioning
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D51694
|