-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
whence -v: fix path canonicalisation
This bug was mediated by the fact that path_search() prefixes the present working directory to any relative path, but does not do any other canonicalisation. A faulty check then caused that path to be considered an absolute path and not in need of canonicalising, even if it contained '.' and '..' elements or double slashes. src/cmd/ksh93/bltins/whence.c: - Remove faulty check for initial '/' that prevented path_fullname() from ever being called. src/cmd/ksh93/tests/builtins.sh: - Add two 'whence -v' path canonicalisation tests. - Tweak other 'whence' tests for consistency. Fixes #84
- Loading branch information
Showing
3 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters