lunarmodules / luafilesystem

LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.
https://lunarmodules.github.io/luafilesystem/
MIT License
900 stars 291 forks source link

Fallback to _POSIX_PATH_MAX when MAXPATHLEN isn't available #130

Closed jamessan closed 4 years ago

jamessan commented 4 years ago

On systems where MAXPATHLEN isn't defined, like GNU/Hurd, use _POSIX_PATH_MAX as the starting size for the getcwd() buffer.


This is a patch we've been carrying in Debian since 2014.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.08%) to 80.221% when pulling c6f74731a312cdbd38c53c62779287df6bea20eb on jamessan:no-MAXPATHLEN into 1dfb8c41e8a7e689959baeaf2961437db9615f74 on keplerproject:master.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.08%) to 80.221% when pulling c6f74731a312cdbd38c53c62779287df6bea20eb on jamessan:no-MAXPATHLEN into 1dfb8c41e8a7e689959baeaf2961437db9615f74 on keplerproject:master.

hishamhm commented 4 years ago

@jamessan Merged, thank you!