Software /
code /
prosody
Comparison
util/startup.lua @ 10532:19ec384eb782
util.startup: Ignore unused errno variable [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 21:02:19 +0100 |
parent | 10405:e7f5735f19e1 |
child | 10599:4f655918fef1 |
comparison
equal
deleted
inserted
replaced
10531:810abf34919a | 10532:19ec384eb782 |
---|---|
446 if not prosody.switched_user then | 446 if not prosody.switched_user then |
447 -- Boo! | 447 -- Boo! |
448 print("Warning: Couldn't switch to Prosody user/group '"..tostring(desired_user).."'/'"..tostring(desired_group).."': "..tostring(err)); | 448 print("Warning: Couldn't switch to Prosody user/group '"..tostring(desired_user).."'/'"..tostring(desired_group).."': "..tostring(err)); |
449 else | 449 else |
450 -- Make sure the Prosody user can read the config | 450 -- Make sure the Prosody user can read the config |
451 local conf, err, errno = io.open(prosody.config_file); | 451 local conf, err, errno = io.open(prosody.config_file); --luacheck: ignore 211/errno |
452 if conf then | 452 if conf then |
453 conf:close(); | 453 conf:close(); |
454 else | 454 else |
455 print("The config file is not readable by the '"..desired_user.."' user."); | 455 print("The config file is not readable by the '"..desired_user.."' user."); |
456 print("Prosody will not be able to read it."); | 456 print("Prosody will not be able to read it."); |