about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-29T01·39-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-29T01·39-0400
commite666e1156fba936dce93ccfa2486f67369a97129 (patch)
tree78bb14c66b321796e598cba4d7def419fa04379d /src/libutil/util.hh
parentf406288cc7cf648001a40b0a96cb97c31347cc5a (diff)
Handle octal escapes in /proc/self/mountinfo
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 408d99a96e66..d3861f730b63 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -332,6 +332,12 @@ string parseString(std::istream & str);
 bool endOfList(std::istream & str);
 
 
+/* Escape a string that contains octal-encoded escape codes such as
+   used in /etc/fstab and /proc/mounts (e.g. "foo\040bar" decodes to
+   "foo bar"). */
+string decodeOctalEscaped(const string & s);
+
+
 /* Exception handling in destructors: print an error message, then
    ignore the exception. */
 void ignoreException();