aboutsummaryrefslogtreecommitdiff
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-08-25Fix lfs.attributes and lfs.symlinkattributes extra argument handlingPeter Melnichenko2-1/+13
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-07-16Add a 'target' field for symlinkattributes.NiteHawk3-1/+52
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-06-30Fix anchor names in documentationPeter Melnichenko1-2/+2
2016-06-09Add a test for #52.Peter Melnichenko1-0/+3
2016-06-01Fix export of luaopen_lfs on Windows (#74)Eric Cosatto2-12/+14
* Make lfs export luaopen_lfs under Windows
2016-05-05Update docs for new return valuesPeter Melnichenko1-7/+7
2016-05-05Test what lfs.attributes returns on errorPeter Melnichenko1-1/+4
2016-05-05Return errno from lfs.attributes on errorPeter Melnichenko1-1/+2
2016-05-05Return errno from lfs.touch on errorPeter Melnichenko1-18/+16
2016-05-05Return errno from lfs.rmdir on errorPeter Melnichenko1-12/+2
2016-05-05Return errno from lfs.mkdir on errorPeter Melnichenko1-29/+28
Change pushresult() to return true on success. Change make_link to keep returning 0.
2016-05-05Include strerror(errno) into error message in lfs.attributesPeter Melnichenko1-2/+2
2016-05-05Add attribute name to error on invalid attribute in lfs.attributesPeter Melnichenko1-1/+1
2016-05-04Document passing table as second argument to lfs.attributesPeter Melnichenko2-4/+5
2016-05-04Refactor set_info() using lua_setfieldPeter Melnichenko1-9/+6
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-04Update top level commentsPeter Melnichenko2-7/+4
2016-05-04Fix a warning when compiling as C++11Peter Melnichenko1-1/+1
2016-05-04Update docs [ci skip]Peter Melnichenko4-29/+14
Remove dead links, 'contact us' section with dead e-mail, etc.
2016-05-04Delete $(CFLAGS).Jin Qing1-1/+1
$(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS) -> $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
2016-05-03Use hererocks for AppveyorPeter Melnichenko4-801/+12
2016-05-03Use hererocks for Travis-CIPeter Melnichenko4-150/+8