summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-02-25 18:28:17 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-02-25 18:28:17 -0300
commitd2b6a5193d7dbb28351ec2108ac119a42c7365e3 (patch)
tree08aa5ec6031f8bef6c0a00fe9bdf7d58c2386457 /lib
parentf6b2f4910184cdce2c1a27fab16eeebecd789446 (diff)
downloadkeyringer-d2b6a5193d7dbb28351ec2108ac119a42c7365e3.tar.gz
keyringer-d2b6a5193d7dbb28351ec2108ac119a42c7365e3.tar.bz2
Skeleton for keyringer_get_option
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/actions/options2
-rwxr-xr-xlib/keyringer/actions/preferences2
-rwxr-xr-xlib/keyringer/functions11
3 files changed, 13 insertions, 2 deletions
diff --git a/lib/keyringer/actions/options b/lib/keyringer/actions/options
index 3bf0e43..b210e1a 100755
--- a/lib/keyringer/actions/options
+++ b/lib/keyringer/actions/options
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Recipient management.
+# Repository options management.
#
# Load functions
diff --git a/lib/keyringer/actions/preferences b/lib/keyringer/actions/preferences
index f7507a7..114f9ac 100755
--- a/lib/keyringer/actions/preferences
+++ b/lib/keyringer/actions/preferences
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Manipulate preferences.
+# Manipulate user preferences.
#
# Load functions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 4ded3b3..ec3eb0c 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -408,6 +408,17 @@ function keyringer_upgrade {
fi
}
+# Get an option
+#
+# Given that options are shared among users through the
+# repository, we can't just "source $OPTIONS" as we would
+# be opening a simple arbitrary code execution hole.
+#
+# TODO
+function keyringer_get_option {
+ false
+}
+
# Get a file argument
function keyringer_get_file {
FILE="$(keyringer_filename "$RELATIVE_PATH/$1")"