Commit Graph

352 Commits

Author SHA1 Message Date
Hisham Muhammad
912e06714f keplerproject -> lunarmodules 2022-07-26 12:40:59 -03:00
Hisham Muhammad
e4eae33de5 win32: use standard memmove function 2022-07-15 17:09:35 -03:00
Hisham Muhammad
3c8d96b77f appveyor.yml: update pip, hererocks, add Lua 5.4 2022-07-15 16:56:42 -03:00
Hisham Muhammad
9cbe5cba90 Move doc/us/ to docs/, replacing the gh-pages branch. 2022-06-24 12:27:22 -03:00
Hisham Muhammad
772fe81c67 Remove old "vc6" folder 2022-06-24 12:15:34 -03:00
Hisham Muhammad
f77f24850b switch to Github Actions 2022-06-24 12:10:16 -03:00
Alexander Turenko
211c2a5d89 rockspec: use git+https:// for git repository URL
GitHub is going to disable unencrypted Git protocol, so `git://` URLs
will stop working soon (see [1]).

[1]: https://github.blog/2021-09-01-improving-git-protocol-security-github/
2021-11-09 11:07:10 -03:00
Hisham Muhammad
7c6e1b013c Release 1.8.0 v1_8_0 2020-04-22 22:16:42 -03:00
Hisham Muhammad
68c624c686 It does work on Windows now! 2020-04-22 22:12:23 -03:00
Hisham Muhammad
41e59da31b update copyrights 2020-04-22 22:09:38 -03:00
Hisham Muhammad
842505b6a3 Lua 5.4: use __close to close dir if you break the iterator 2020-04-22 11:30:28 -03:00
Hisham Muhammad
3e879ffba1 indent -kr -nut -i2 src/lfs.c src/lfs.h 2020-04-22 11:30:28 -03:00
Hisham Muhammad
4f7e1b5a49 Makefile: make it easier to switch Lua versions 2020-04-21 18:41:55 -03:00
云风
a5336d294d Use CREATE_ALWAYS instead of CREATE_NEW 2020-04-21 18:36:43 -03:00
Hisham Muhammad
6048863a96 tests: behavior test for hard links
Also check nlink on Unix only
and test if something is a symlink
2020-04-21 13:45:50 -03:00
Hisham Muhammad
1a61e5284d win32: strip UNC prefix if present 2020-04-21 13:45:50 -03:00
Hisham Muhammad
7cb7d86dc4 win32 lstat: if it's not a link, just do stat 2020-04-21 13:45:50 -03:00
Hisham Muhammad
94700f7c18 win32: obtain symlink attributes 2020-04-21 13:45:50 -03:00
Eroica
53d2acc517 Add Windows compatibility for lfs.link
Co-Authored-By: Hisham Muhammad <hisham@gobolinux.org>
2020-04-21 13:45:50 -03:00
Hisham Muhammad
6b11508ea9 tests: drop LuaJIT 2.0 from test matrix 2020-04-21 13:45:50 -03:00
Joshua Root
58cf8c9449 Make MACOSX_DEPLOYMENT_TARGET configurable
Also increase the default target to 10.5, since Xcode 10 can no longer
target 10.3.
2020-04-20 21:36:11 -03:00
Peter Melnichenko
04ba8d686a Support Lua 5.4 2020-04-20 18:50:38 -03:00
James McCoy
04bdaf9a1e Fallback to _POSIX_PATH_MAX when MAXPATHLEN isn't available (#130)
On systems where MAXPATHLEN isn't defined, like GNU/Hurd, use
_POSIX_PATH_MAX as the starting size for the getcwd() buffer.
2019-10-29 16:08:55 -04:00
Peter Melnichenko
1dfb8c41e8 Replace rockspecs/ with a single scm rockspec (#108)
There is no need to keep rockspecs for older versions - it's enough
to ensure that `luarocks make` builds currently checked out version.

`luarocks new-version <rockspec> <version> --tag=<tag>` generates
rockspecs for releases.

Use `scm` instead of `dev` as LuaRocks 2 thinks that `dev` versions
are less than normal versions like 1.6.3, making it tricky to
use bleeding-edge version as a dependency with a constraint
such as `luafilesystem >= 1.6.3`.
2018-03-15 20:38:32 -03:00
TsT
37d8524e7e lfs.attributes and lfs.symlinkattributes arguments renamed s/aname/request_name/ s/atable/result_table/ (#106) 2017-12-14 18:12:18 -02:00
Kıvanç Çakmak
e5f06c270a added extra include-dir to compile in ubuntu (#103) 2017-11-29 20:12:28 -02:00
Hisham Muhammad
884b52a3b2 Fix memory leak in case of realloc failure. (#102)
Fixes #101.
2017-11-27 14:03:38 -02:00
Hisham Muhammad
1b5073419f Merge branch 'master' of https://github.com/keplerproject/luafilesystem 2017-11-26 16:44:49 -02:00
Stephen E. Baker
fe964e013d Update version in lfs.def (#96)
Version number of current release is 1.7
2017-10-08 17:03:08 -03:00
Dan Church
12d1692f14 Support DESTDIR make install option (#98)
Useful for packagers to specify a build jail to install into.
2017-10-08 17:01:53 -03:00
Hisham Muhammad
de87218e97 Add rockspec for hotfix. v1_7_0_2 2017-09-15 20:07:33 -03:00
Hisham Muhammad
a23cadf009 Fix _VERSION entry
Thanks Milind Gupta for noting!
2017-09-15 20:04:43 -03:00
Hisham Muhammad
220d38c7d1 Update for release 1.7.0. v1_7_0 2017-09-15 19:52:00 -03:00
Hisham Muhammad
a066a03f1c First iteration of the new CSS for Kepler libraries 2017-09-15 19:51:46 -03:00
Hisham Muhammad
d37fc8101a Add rockspec for 1.7.0 2017-09-15 19:51:07 -03:00
Peter Melnichenko
754576dee6 Add 'unreleased' section to changelog in docs 2017-09-14 15:46:13 +03:00
Peter Melnichenko
d399961536 Merge branch '1.7' 2017-09-14 12:15:58 +03:00
Peter Melnichenko
8a7796ec17 Typo fix in README 2017-09-14 12:12:14 +03:00
Peter Melnichenko
dd6911ef15 Update copyright year [ci skip] 2017-09-14 12:10:39 +03:00
Peter Melnichenko
55ed1b14ab README corrections [ci skip] 2017-09-14 12:05:49 +03:00
Peter Melnichenko
a84d81bc52 Fix compilation warning for LuaJIT 2.1
Do not redefine or reimplement standard Lua C API function
luaL_newlib, use another name (new_lib) instead.
2017-09-14 12:01:00 +03:00
Peter Melnichenko
a90ec38133 Update luacov-coveralls deps installation in .travis.yml 2017-09-11 15:39:09 +03:00
Peter Melnichenko
ee5942d810 Add LuaJIT 2.1 to Travis-CI matrix 2017-09-11 13:53:28 +03:00
NiteHawk
3c4e563d9c Dynamically size getcwd() buffer in get_dir function (#84)
* Dynamically size getcwd() buffer in get_dir function

This should fix issue 42.

* Fixup: Properly respect NO_GETCWD

* Fixup: Get rid of getcwd_error, handle NO_GETCWD in a single place
2016-10-14 15:46:54 -07:00
Peter Melnichenko
50919ed69f Fix lfs.attributes and lfs.symlinkattributes extra argument handling
When the second argument is not a string, _file_info() wants to
ensure that there is a table on top of the stack: the second argument
or a new table. If a new table is pushed it's created on top immediately,
but if a table is passed as the second argument it can be followed
by extra arguments, with the last one ending up being used as a table,
causing a crash. The fix is to remove any potential extra arguments
using `lua_settop(L, 2)`.

Also added a few tests for this case. Ref #80.
2016-08-25 18:31:09 +03:00
Hisham Muhammad
4cf702d850 Merge pull request #78 from n1tehawk/20160716_symlink-target
Add a 'target' field for symlinkattributes.
2016-07-17 22:10:31 -03:00
NiteHawk
32b355a990 Add a 'target' field for symlinkattributes.
It returns the resolved path of the symlink.

Original version by Hisham <hisham@gobolinux.org>, modified to
use a different strategy for sizing the readlink() buffer.
2016-07-16 15:35:27 +02:00
Peter Melnichenko
080f74f785 Fix anchor names in documentation 2016-06-30 21:17:54 +03:00
Peter Melnichenko
a332bde584 Merge branch 'master' into 1.7 2016-06-21 10:48:11 +03:00
Peter Melnichenko
7fae11cdb5 Add a test for #52. 2016-06-09 13:28:56 +03:00