summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-11-03 21:57:42 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-11-03 21:57:42 -0800
commit4a70ba5b24e9b6ce14c5ed3875df367f6a0ee4b7 (patch)
treef6500e4c62afdeec7e47864c454a9ad7dde2b81b /parser.y
parent5135b7a124340e50bd376d22dce41fd0d20852fe (diff)
downloadtxr-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