forked from freifunk-berlin/firmware
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patches/freifunk: hotfix for freifunk/openwrt-packages#33
- Loading branch information
1 parent
787bf7b
commit 976d850
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...k/0007-mod-freifunk-hotfix-for-https-github.com-freifunk-openwrt-packages-issues-33.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From: Sven Roederer <[email protected]> | ||
Date: Thu, 13 May 2021 19:31:18 +0200 | ||
Subject: mod-freifunk: hotfix for "https://github.com/freifunk/openwrt-packages/issues/33" | ||
|
||
* don't drop root priviledges make page work again, but it's not a real fix of the issue | ||
|
||
diff --git a/modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua b/modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua | ||
index f35fa60dd34fdbb3d0619061fc9051cb12f8537d..8379513336f3b11b95ad504d3a2bef0650d2a531 100644 | ||
--- a/modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua | ||
+++ b/modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua | ||
@@ -18,8 +18,9 @@ function index() | ||
page.title = _("Freifunk") | ||
page.target = alias("freifunk", "index") | ||
page.order = 5 | ||
- page.setuser = "nobody" | ||
- page.setgroup = "nogroup" | ||
+-- TODO: fix issue #33 and drop privileges again | ||
+-- page.setuser = "nobody" | ||
+-- page.setgroup = "nogroup" | ||
page.i18n = "freifunk" | ||
page.index = true | ||
|