diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-11-29 06:40:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-11-29 06:40:52 +0000 |
commit | 37369d1cefec4d1990e59fbec613d2bc66e68eba (patch) | |
tree | 86439ecf806f00f3350470f99fb8d700b1cbe2a8 /misc | |
parent | bb3f4825c411e676c51479fea59643af540810b5 (diff) | |
download | glibc-37369d1cefec4d1990e59fbec613d2bc66e68eba.tar.gz glibc-37369d1cefec4d1990e59fbec613d2bc66e68eba.tar.xz glibc-37369d1cefec4d1990e59fbec613d2bc66e68eba.zip |
Update.
* misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding of newline. * manual/sysinfo.texi (mtab): Adjust description accordingly. Reported by Andries.Brouwer@cwi.nl.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/mntent_r.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/mntent_r.c b/misc/mntent_r.c index 9bfe8756f1..3a47f61f38 100644 --- a/misc/mntent_r.c +++ b/misc/mntent_r.c @@ -84,12 +84,18 @@ decode_name (char *buf) *wp++ = ' '; rp += 3; } - else if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '2') + else if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '1') { /* \012 is a TAB. */ *wp++ = '\t'; rp += 3; } + else if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '2') + { + /* \012 is a NEWLINE. */ + *wp++ = '\n'; + rp += 3; + } else if (rp[0] == '\\' && rp[1] == '\\') { /* We have to escape \\ to be able to represent all characters. */ |