about summary refs log tree commit diff
path: root/misc/mntent_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mntent_r.c')
-rw-r--r--misc/mntent_r.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/misc/mntent_r.c b/misc/mntent_r.c
index 2623ec3b70..1476c86ee2 100644
--- a/misc/mntent_r.c
+++ b/misc/mntent_r.c
@@ -86,7 +86,7 @@ decode_name (char *buf)
       }
     else if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '1')
       {
-	/* \012 is a TAB.  */
+	/* \011 is a TAB.  */
 	*wp++ = '\t';
 	rp += 3;
       }
@@ -220,6 +220,13 @@ weak_alias (__getmntent_r, getmntent_r)
 	      *wp++ = '\\';						      \
 	      *wp++ = '0';						      \
 	      *wp++ = '1';						      \
+	      *wp++ = '1';						      \
+	    }								      \
+	  else if (*rp == '\n')						      \
+	    {								      \
+	      *wp++ = '\\';						      \
+	      *wp++ = '0';						      \
+	      *wp++ = '1';						      \
 	      *wp++ = '2';						      \
 	    }								      \
 	  else if (*rp == '\\')						      \