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:
parent
f406288cc7
commit
e666e1156f
3 changed files with 24 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue