Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Add error printing for ENAMETOOLONG. Partially addre...



details:   https://anonhg.NetBSD.org/src/rev/0de2fbd36e28
branches:  trunk
changeset: 586792:0de2fbd36e28
user:      garbled <garbled%NetBSD.org@localhost>
date:      Mon Jan 02 19:10:33 2006 +0000

description:
Add error printing for ENAMETOOLONG.  Partially addresses PR bin/13850 .
The actual bug mentioned in that PR no longer exists, but it does cause:
~~~~~: error 63
Which this fix cleans up.

diffstat:

 bin/sh/error.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r dd43cb41a32e -r 0de2fbd36e28 bin/sh/error.c
--- a/bin/sh/error.c    Mon Jan 02 17:35:55 2006 +0000
+++ b/bin/sh/error.c    Mon Jan 02 19:10:33 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: error.c,v 1.31 2003/08/07 09:05:30 agc Exp $   */
+/*     $NetBSD: error.c,v 1.32 2006/01/02 19:10:33 garbled Exp $       */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)error.c    8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: error.c,v 1.31 2003/08/07 09:05:30 agc Exp $");
+__RCSID("$NetBSD: error.c,v 1.32 2006/01/02 19:10:33 garbled Exp $");
 #endif
 #endif /* not lint */
 
@@ -337,6 +337,9 @@
 #ifdef ELOOP
        { ELOOP,        ALL,    "symbolic link loop" },
 #endif
+#ifdef ENAMETOOLONG
+       { ENAMETOOLONG, ALL,    "file name too long" },
+#endif
        { E2BIG,        E_EXEC, "argument list too long" },
 #ifdef ELIBACC
        { ELIBACC,      E_EXEC, "shared library missing" },



Home | Main Index | Thread Index | Old Index