summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2016-08-10 16:09:30 +0000
committerTed Trask <ttrask01@yahoo.com>2016-08-10 16:09:30 +0000
commit329be2151d4208ebc9d8d5f30250c2daf33e99f8 (patch)
tree15dfb677ad496466e74b6f3baef0f83c0f949070
parentfc80058fa507384b1c530942aa68328a8d7eb31b (diff)
downloadacf-samba-master.tar.bz2
acf-samba-master.tar.xz
Remove trailing whitespaceHEADmaster
-rw-r--r--Makefile2
-rw-r--r--samba-listfiles-html.lsp2
-rw-r--r--samba-listshares-html.lsp4
-rw-r--r--samba-model.lua12
4 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 24d4079..fef6a6e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ APP_DIST=\
EXTRA_DIST=README Makefile config.mk
-DISTFILES=$(APP_DIST) $(EXTRA_DIST)
+DISTFILES=$(APP_DIST) $(EXTRA_DIST)
TAR=tar
diff --git a/samba-listfiles-html.lsp b/samba-listfiles-html.lsp
index b58e51e..96bb898 100644
--- a/samba-listfiles-html.lsp
+++ b/samba-listfiles-html.lsp
@@ -1,4 +1,4 @@
-<% local data, viewlibrary, page_info, session = ...
+<% local data, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/samba-listshares-html.lsp b/samba-listshares-html.lsp
index e3fc36c..a0a608a 100644
--- a/samba-listshares-html.lsp
+++ b/samba-listshares-html.lsp
@@ -1,4 +1,4 @@
-<% local view, viewlibrary, page_info, session = ...
+<% local view, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
@@ -42,7 +42,7 @@ html = require("acf.html")
<% if viewlibrary.check_permission("editshare") then %>
<% htmlviewfunctions.displayitem(cfe({type="link", value={name=name, redir=redir}, label="", option="Edit", action="editshare"}), page_info, -1) %>
<% end %>
- <% if viewlibrary.check_permission("deleteshare") then %>
+ <% if viewlibrary.check_permission("deleteshare") then %>
<% htmlviewfunctions.displayitem(cfe({type="form", value={name=name}, label="", option="Delete", action="deleteshare"}), page_info, -1) %>
<% end %>
</td>
diff --git a/samba-model.lua b/samba-model.lua
index 1e2cd70..d3e068b 100644
--- a/samba-model.lua
+++ b/samba-model.lua
@@ -102,11 +102,11 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function mymodule.get_startstop(self, clientdata)
+function mymodule.get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-function mymodule.startstop_service(self, startstop, action)
+function mymodule.startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
@@ -122,7 +122,7 @@ function mymodule.listconfigfiles()
table.insert(listed_files, filedetails)
end
table.sort(listed_files, function (a,b) return (a.filename < b.filename) end )
-
+
return cfe({ type="structure", value=listed_files, label="Samba File List" })
end
@@ -225,15 +225,15 @@ function mymodule.read_share(self, clientdata)
share.guest.value = "OK"
end
end
- --share.invalid_users =
+ --share.invalid_users =
share.path = cfe({ value=sharecfg.path or sharecfg.directory or "", label="Path", seq=3 })
share.printable = cfe({ type="boolean", value=config_to_bool(sharecfg.printable) or config_to_bool(sharecfg["print ok"]) or false, label="Printable", seq=6 })
- --share.read_list =
+ --share.read_list =
share.writeable = cfe({ type="boolean", value=config_to_bool(sharecfg.writeable) or config_to_bool(sharecfg.writable) or (sharecfg["read only"] and not config_to_bool(sharecfg["read only"])) or false, label="Writable", seq=7 })
--share.username = (same as user and users)
--share.valid_users =
share.valid = cfe({ type="boolean", value=not sharecfg["-valid"] or config_to_bool(sharecfg["-valid"]), label="Enabled", seq=1 })
- --share.write_list =
+ --share.write_list =
share.other = cfe({ type="longtext", value={}, label="Other parameters", seq=8 })
local reverseparams = {browseable=1, browsable=2, comment=3, public=4, ["guest ok"]=5, ["only guest"]=6, ["guest only"]=7, path=8, directory=9, printable=10, ["print ok"]=11, writeable=12, writable=13, ["read only"]=14, ["-valid"]=15 }
for name,value in pairs(sharecfg) do