Removes dofile() from Lua #732

Merged
merged 1 commit into from May 8, 2016

2 participants

@evilpacket

Removed dofile function from the Lua environment.

dofile() called without arguments reads from STDIN and blocks and never finishes.

dofile called with file arguments can be used to determine if files exist or not, as well as it's probably not good to read scripts from disk for atomic operations.

@antirez antirez merged commit b44ad30 into antirez:unstable May 8, 2016
@antirez
Owner

Thanks! Merged.

@antirez
Owner

Backported to 3.0 / 3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment