* ffluci/core: dispatcher.lua: setgid() won't work after setuid() due to missing permission - swapped set*id() calls; whitespace cleanups
This commit is contained in:
parent
628701518a
commit
32aa488d9b
1 changed files with 35 additions and 35 deletions
|
@ -100,14 +100,14 @@ function dispatch()
|
||||||
require("ffluci.i18n").loadc(track.i18n)
|
require("ffluci.i18n").loadc(track.i18n)
|
||||||
end
|
end
|
||||||
|
|
||||||
if track.setuser then
|
|
||||||
ffluci.sys.process.setuser(track.setuser)
|
|
||||||
end
|
|
||||||
|
|
||||||
if track.setgroup then
|
if track.setgroup then
|
||||||
ffluci.sys.process.setgroup(track.setgroup)
|
ffluci.sys.process.setgroup(track.setgroup)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if track.setuser then
|
||||||
|
ffluci.sys.process.setuser(track.setuser)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
if c and type(c.target) == "function" then
|
if c and type(c.target) == "function" then
|
||||||
dispatched = c
|
dispatched = c
|
||||||
|
|
Loading…
Reference in a new issue