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
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
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
Ignacio Burgueño
3674e4f52f
Adds missing -lluacov test
2016-01-21 15:08:25 -03:00
Ignacio Burgueño
5daddd4c2b
Drop sudo from call
2016-01-21 14:58:15 -03:00
Ignacio Burgueño
6232ca6dbd
source script instead of just calling it
...
Thanks @moteus
2016-01-21 14:56:15 -03:00
Ignacio Burgueño
7ede630d6d
Pass --user flag to pip
2016-01-21 14:53:32 -03:00
Ignacio Burgueño
5131a28067
Adds coverage
...
Begin work adding coverage.
2016-01-21 14:08:20 -03:00
Ignacio Burgueño
9e7f97ea4c
Change readme to markdown format
2016-01-21 13:59:29 -03:00
Ignacio Burgueño
488304b5a5
Updates Travis CI scripts
2016-01-21 13:54:17 -03:00
Ignacio Burgueño
222330973c
Merge pull request #60 from MisterDA/doc-permissions
...
Add documentation for attributes.permissions, fix #59
2016-01-18 14:43:39 -03:00
Antonin Décimo
c0965e8048
Add documentation for attributes.permissions, fix #59
2016-01-18 16:28:06 +01:00
Hisham Muhammad
6d039ff385
Merge pull request #53 from Tieske/fix_warning
...
fix warning for redefining macro on MinGW
2015-08-24 16:32:49 -03:00
Thijs Schreijer
dc00750ea9
fix warning for redefining macro on MinGW
2015-08-24 20:54:36 +02:00
Hisham Muhammad
b6d5b37c1b
Merge pull request #52 from siffiejoe/checkfile
...
Fix detection of closed files on Lua 5.2/5.3.
2015-06-15 17:25:40 -03:00
Philipp Janda
c315150aff
Fix detection of closed files on Lua 5.2/5.3.
...
Lua 5.2 changed the protocol on how to represent closed files: Lua 5.1
sets the file pointer to NULL, Lua 5.2 sets the close function pointer
to NULL (a NULL file pointer now signals an incompletely constructed
object).
Also `luaL_checkudata` never returns NULL, it raises an error instead
if you have an invalid value (no userdata/not correct userdata type).
2015-06-14 22:44:46 +02:00
Hisham Muhammad
5f8b6461a2
Cleanup readme. Too many places with duplicated info.
2015-03-19 14:53:20 -03:00