1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 19:03:16 +02:00

Handle octal escapes in /proc/self/mountinfo

This commit is contained in:
Eelco Dolstra 2012-09-28 21:39:30 -04:00
parent f406288cc7
commit e666e1156f
3 changed files with 24 additions and 2 deletions

View file

@ -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();