Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2016-08-25 | Fix lfs.attributes and lfs.symlinkattributes extra argument handling | Peter Melnichenko | 2 | -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-16 | Add a 'target' field for symlinkattributes. | NiteHawk | 3 | -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-30 | Fix anchor names in documentation | Peter Melnichenko | 1 | -2/+2 | |
2016-06-09 | Add a test for #52. | Peter Melnichenko | 1 | -0/+3 | |
2016-06-01 | Fix export of luaopen_lfs on Windows (#74) | Eric Cosatto | 2 | -12/+14 | |
* Make lfs export luaopen_lfs under Windows | |||||
2016-05-05 | Update docs for new return values | Peter Melnichenko | 1 | -7/+7 | |
2016-05-05 | Test what lfs.attributes returns on error | Peter Melnichenko | 1 | -1/+4 | |
2016-05-05 | Return errno from lfs.attributes on error | Peter Melnichenko | 1 | -1/+2 | |
2016-05-05 | Return errno from lfs.touch on error | Peter Melnichenko | 1 | -18/+16 | |
2016-05-05 | Return errno from lfs.rmdir on error | Peter Melnichenko | 1 | -12/+2 | |
2016-05-05 | Return errno from lfs.mkdir on error | Peter Melnichenko | 1 | -29/+28 | |
Change pushresult() to return true on success. Change make_link to keep returning 0. | |||||
2016-05-05 | Include strerror(errno) into error message in lfs.attributes | Peter Melnichenko | 1 | -2/+2 | |
2016-05-05 | Add attribute name to error on invalid attribute in lfs.attributes | Peter Melnichenko | 1 | -1/+1 | |
2016-05-04 | Document passing table as second argument to lfs.attributes | Peter Melnichenko | 2 | -4/+5 | |
2016-05-04 | Refactor set_info() using lua_setfield | Peter Melnichenko | 1 | -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-04 | Update top level comments | Peter Melnichenko | 2 | -7/+4 | |
2016-05-04 | Fix a warning when compiling as C++11 | Peter Melnichenko | 1 | -1/+1 | |
2016-05-04 | Update docs [ci skip] | Peter Melnichenko | 4 | -29/+14 | |
Remove dead links, 'contact us' section with dead e-mail, etc. | |||||
2016-05-04 | Delete $(CFLAGS). | Jin Qing | 1 | -1/+1 | |
$(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS) -> $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS) | |||||
2016-05-03 | Use hererocks for Appveyor | Peter Melnichenko | 4 | -801/+12 | |
2016-05-03 | Use hererocks for Travis-CI | Peter Melnichenko | 4 | -150/+8 | |