summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-08-15 15:02:56 -0700
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-08-15 15:02:56 -0700
commitcb05f332e617e346aa533d6dde02fb11c6148799 (patch)
treeacec015412602245075ac2f1e85c144c6cebd7e2 /src/common
parent8cf936aa9d62f6e8655904375a2d8217f559947a (diff)
parentb0ea15c8e359a908583e08da0663d69e353c77dc (diff)
Merge commit 'dkg/master'
Conflicts: src/monkeysphere-server Resolved conflicts in revoke-hostname, and finish work on them.
Diffstat (limited to 'src/common')
-rw-r--r--src/common6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common b/src/common
index 34c86cb..bb988f7 100644
--- a/src/common
+++ b/src/common
@@ -77,6 +77,12 @@ gpg_unescape() {
sed 's/\\x3a/:/g'
}
+# convert nasty chars into gpg-friendly form in pipeline
+# FIXME: escape everything, not just colons!
+gpg_escape() {
+ sed 's/:/\\x3a/g'
+}
+
# remove all lines with specified string from specified file
remove_line() {
local file