diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-01-25 22:49:35 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-01-25 22:49:35 -0800 |
commit | b21778b7f432c9c5a9c3e5e442b2305cbcc0d524 (patch) | |
tree | 10953b0d2021da652277f9a033c3e33cb69563df /jmp.S | |
parent | 208319c21734bbb829fd6b8e2bc9da819b454bad (diff) | |
download | txr-b21778b7f432c9c5a9c3e5e442b2305cbcc0d524.tar.gz txr-b21778b7f432c9c5a9c3e5e442b2305cbcc0d524.tar.bz2 txr-b21778b7f432c9c5a9c3e5e442b2305cbcc0d524.zip |
ensure-dir: fail if exists and not dir.
* sysif.c (do_stat, do_lstat): Functions relocated before
mkdir_nothrow_exists.
(mkdir_nothrow_exists): In the EEXIST case, call stat on the
object. If it's not a directory or a symlink to a directory,
then do not suppress the error; propagate it to the caller,
where it will become an exception.
* txr.1: Specify the behavior of ensure-dir more precisely:
that it only supresses the existence error for directories
and directory symlinks.
Diffstat (limited to 'jmp.S')
0 files changed, 0 insertions, 0 deletions