diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-11-03 21:57:42 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-11-03 21:57:42 -0800 |
commit | 4a70ba5b24e9b6ce14c5ed3875df367f6a0ee4b7 (patch) | |
tree | f6500e4c62afdeec7e47864c454a9ad7dde2b81b /parser.y | |
parent | 5135b7a124340e50bd376d22dce41fd0d20852fe (diff) | |
download | txr-4a70ba5b24e9b6ce14c5ed3875df367f6a0ee4b7.tar.gz txr-4a70ba5b24e9b6ce14c5ed3875df367f6a0ee4b7.tar.bz2 txr-4a70ba5b24e9b6ce14c5ed3875df367f6a0ee4b7.zip |
path-tests: fix incorrect type tests.
Reported by user vapnik spaknik, who discovered the
path-symlink-p function yielding a false positive
on a regular file. The functions in this group are
bit testing rather than extracting a bitfield and
checking the enumerated value.
* share/txr/stdlib/path-test.tl (sys:path-test-type): New
function.
(path-file-p, path-dir-p, path-symlink-p, path-blkdev-p,
path-chrdev-p, path-sock-p, path-pipe-p): Use
sys:path-test-type rather than sys:path-test-mode.
Diffstat (limited to 'parser.y')
0 files changed, 0 insertions, 0 deletions