From c9d941215b442b6ae02bebfc38f8f16e257c6635 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Mon, 27 Apr 2015 13:10:16 +0200 Subject: [PATCH] lfs.attributes() basically does a stat() Rename these variables accordingly, that kills my itch to close() random fds ^^ --- frontend/device.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/device.lua b/frontend/device.lua index da86f3cc2..504a03255 100644 --- a/frontend/device.lua +++ b/frontend/device.lua @@ -16,13 +16,13 @@ local function probeDevice() return require("device/kindle/device") end - local kg_test_fd = lfs.attributes("/bin/kobo_config.sh") - if kg_test_fd then + local kg_test_stat = lfs.attributes("/bin/kobo_config.sh") + if kg_test_stat then return require("device/kobo/device") end - local pbook_test_fd = lfs.attributes("/ebrmain") - if pbook_test_fd then + local pbook_test_stat = lfs.attributes("/ebrmain") + if pbook_test_stat then return require("device/pocketbook/device") end