diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-02-10 14:29:04 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-02-10 14:29:04 +0000 |
| commit | 2df923c5d2d02350abc29f61b603c5b9615b225c (patch) | |
| tree | 33d8e9651ca89e63463dec475c5c03854ef752e9 /packages/Python/lldbsuite | |
| parent | 47fb51847fdea3f1cce841b5f2bbbcd6f8a04ee0 (diff) | |
pwd: Clean up and adopt POSIX semantics
According to POSIX, the default should be -L. Based on code history,
whoever first wrote BSD pwd(1) could not figure out how to implement
-L and therefore made -P the default (and only) option. Support for -L
was later added, but the default was never changed.
Clean up the code, make -L the default, and rewrite getcwd_logical() to
reject paths that contain dot or dot-dot, as required by POSIX.
MFC after: 1 week
Reviewed by: olce
Differential Revision: https://reviews.freebsd.org/D55146
Diffstat (limited to 'packages/Python/lldbsuite')
0 files changed, 0 insertions, 0 deletions
