aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2019-07-25 14:56:28 -0300
committerHisham Muhammad <hisham@gobolinux.org>2019-07-25 18:47:00 -0300
commit869a628bec218b94b4b312fadcedf13262fa5b03 (patch)
treefd3e548f4e69cfae6b822bf54ba3e06df39ed8da /src/bin
parentc79d3a85820d5b69b3a8f309d456a9feb4eeb013 (diff)
downloadluarocks-869a628bec218b94b4b312fadcedf13262fa5b03.tar.gz
luarocks-869a628bec218b94b4b312fadcedf13262fa5b03.tar.bz2
luarocks-869a628bec218b94b4b312fadcedf13262fa5b03.zip
fs: use Unix fork-free versions of is_file/is_dir in Linux and macOS only
The Unix fork-free version relies on non-standard behaviors. It works on Linux, but it took a while for it to work properly in macOS, and it turns out that you can't really properly detect a directory in FreeBSD using io.open() because it can actually open a directory. To avoid filling in platform-specific tricks in luarocks/fs/unix.lua, which was never the goal, it's better to move the fork-free operations to Linux and macOS specific backends, and keep other Unices using the 'test' command.
Diffstat (limited to 'src/bin')
0 files changed, 0 insertions, 0 deletions