Skip to content

Commit

Permalink
fixing loadstring() Lua5.3 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
axkibe committed Mar 9, 2018
1 parent f3d6577 commit 99b6b18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
a trailing '/' to it, since that would change it from homedir to rootdir!
add: example for Amazon S3 Bucket (Daniel Miranda)
fix: setting stdout/stderr to linebuffer mode.
fix: Lua5.3 compatiblity, using load() instead of loadstring()
Lua5.1 support was thus dropped

2017-02-16: 2.2.2
fix: checkgauge 'insist'
Expand Down
2 changes: 1 addition & 1 deletion lsyncd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5031,7 +5031,7 @@ function runner.initialize( firstTime )
then
local ft = functionWriter.translate( config[ fn ] )

config[ fn ] = assert( loadstring( 'return '..ft ) )( )
config[ fn ] = assert( load( 'return '..ft ) )( )
end
end
end
Expand Down

0 comments on commit 99b6b18

Please sign in to comment.