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
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
Eric Cosatto
6e0dc7b27c
Fix export of luaopen_lfs on Windows ( #74 )
...
* Make lfs export luaopen_lfs under Windows
2016-06-01 17:52:07 -03:00
Peter Melnichenko
81e5b165bf
Update docs for new return values
2016-05-05 12:39:17 +03:00
Peter Melnichenko
8d5f9661e9
Test what lfs.attributes returns on error
2016-05-05 12:39:17 +03:00
Peter Melnichenko
b37e88b3d6
Return errno from lfs.attributes on error
2016-05-05 12:39:17 +03:00
Peter Melnichenko
8f167ef1de
Return errno from lfs.touch on error
2016-05-05 12:39:17 +03:00
Peter Melnichenko
8b85d257a6
Return errno from lfs.rmdir on error
2016-05-05 12:39:17 +03:00
Peter Melnichenko
d186dda4d7
Return errno from lfs.mkdir on error
...
Change pushresult() to return true on success.
Change make_link to keep returning 0.
2016-05-05 12:38:28 +03:00
Peter Melnichenko
1937ba848b
Include strerror(errno) into error message in lfs.attributes
2016-05-05 12:12:07 +03:00
Peter Melnichenko
732f9e9309
Add attribute name to error on invalid attribute in lfs.attributes
2016-05-05 12:10:04 +03:00
Peter Melnichenko
03e01ff953
Document passing table as second argument to lfs.attributes
2016-05-04 18:25:06 +03:00
Peter Melnichenko
3789521838
Refactor set_info() using lua_setfield
...
About indentation: currently parts of lfs.c use 2 spaces
and parts use 8. It would be nice to slowly switch to one
of styles over some time, as code is being touched here and there.
2 spaces seem preferrable as it's what Lua itself uses.
2016-05-04 13:40:30 +03:00
Peter Melnichenko
5220452e3b
Update top level comments
2016-05-04 13:35:55 +03:00
Peter Melnichenko
12d1f260f3
Fix a warning when compiling as C++11
2016-05-04 13:05:19 +03:00
Peter Melnichenko
e5458bfa74
Merge pull request #71 from jinq0123/fix_makefile
...
Delete $(CFLAGS) in Makefile.
2016-05-04 13:58:49 +04:00
Peter Melnichenko
dd6376411f
Update docs [ci skip]
...
Remove dead links, 'contact us' section with dead e-mail, etc.
2016-05-04 12:37:19 +03:00
Jin Qing
e3253069b9
Delete $(CFLAGS).
...
$(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
->
$(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
2016-05-04 11:17:35 +08:00
Peter Melnichenko
83b8fa6c6b
Merge pull request #70 from mpeterv/hererocks-ci
...
Use hererocks for CI
2016-05-04 03:18:58 +04:00
Peter Melnichenko
1146cc2b33
Use hererocks for Appveyor
2016-05-03 20:26:06 +03:00
Peter Melnichenko
a9a95acd68
Use hererocks for Travis-CI
2016-05-03 20:24:08 +03:00
Hisham Muhammad
210322f493
Merge pull request #69 from hughperkins/master
...
add build artefact to .gitignore
2016-04-30 16:01:50 -03:00
Hugh Perkins
9cbb967b55
add build artefact to .gitignore
2016-04-30 20:37:37 +02:00
Peter Melnichenko
2d4d609d81
.travis.yml: run tests from root directory
...
Fixes missing view for tests/test.lua coverage on coveralls site.
2016-04-26 11:00:34 +03:00
Hisham Muhammad
436bc441fa
Merge pull request #68 from mpeterv/setmode-refactor
...
Minor refactoring of setmode
2016-04-25 16:56:26 -03:00
Hisham Muhammad
e519c13036
Merge pull request #66 from n1tehawk/contrib
...
Have make_link() use pushresult() instead of pusherror() on Windows
2016-04-25 11:57:40 -03:00
Peter Melnichenko
c1e9c70214
Don't pass Lua state to lfs_setmode, it's always unused
2016-04-25 15:42:54 +03:00
Peter Melnichenko
655ec8baa3
Use pusherror in lfs_g_setmode
2016-04-25 15:36:37 +03:00
Peter Melnichenko
695def20ef
Get rid of goto in lfs_g_setmode
2016-04-25 15:33:12 +03:00
NiteHawk
ba6d0e1ad9
Have make_link() use pushresult() instead of pusherror() on Windows
...
The pushresult(L, -1, ...) call will delegate to pusherror() anyway,
but this avoids the "Unused static" warning for pushresult.
Also take care of assigning something meaningful to `errno`, as
strerror(errno) is used for constructing the Lua error message.
Fixes #65
2016-03-25 13:07:13 +01:00
Ignacio Burgueño
95d946e0fe
Adds badges [ci skip]
2016-01-21 15:41:48 -03:00
Ignacio Burgueño
22d539e199
Adds AppVeyor integration
2016-01-21 15:28:14 -03:00