Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
a38f2a4c
Commit
a38f2a4c
authored
5 years ago
by
David Bauer
Browse files
Options
Downloads
Patches
Plain Diff
packages: fix missing argument to posix.glob
parent
002e3a9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
+1
-1
1 addition, 1 deletion
package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
package/gluon-web/luasrc/usr/lib/lua/gluon/web/dispatcher.lua
+2
-2
2 additions, 2 deletions
...age/gluon-web/luasrc/usr/lib/lua/gluon/web/dispatcher.lua
with
3 additions
and
3 deletions
package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
+
1
−
1
View file @
a38f2a4c
...
...
@@ -134,7 +134,7 @@ end
-- Safe glob: returns an empty table when the glob fails because of
-- a non-existing path
function
M
.
glob
(
pattern
)
return
posix_glob
.
glob
(
pattern
)
or
{}
return
posix_glob
.
glob
(
pattern
,
0
)
or
{}
end
-- Generates a (hopefully) unique MAC address
...
...
This diff is collapsed.
Click to expand it.
package/gluon-web/luasrc/usr/lib/lua/gluon/web/dispatcher.lua
+
2
−
2
View file @
a38f2a4c
...
...
@@ -159,10 +159,10 @@ local function dispatch(config, http, request)
ctl
()
end
for
_
,
path
in
ipairs
(
glob
.
glob
(
base
..
"*.lua"
)
or
{})
do
for
_
,
path
in
ipairs
(
glob
.
glob
(
base
..
"*.lua"
,
0
)
or
{})
do
load_ctl
(
path
)
end
for
_
,
path
in
ipairs
(
glob
.
glob
(
base
..
"*/*.lua"
)
or
{})
do
for
_
,
path
in
ipairs
(
glob
.
glob
(
base
..
"*/*.lua"
,
0
)
or
{})
do
load_ctl
(
path
)
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment