Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Andreas Schwab
Wed, 15 Apr 1992 14:39
Bugs in shellutils-1.6: pathchk and printf
Author: Andreas Schwab
Date: Wed, 15 Apr 1992 14:39
Date: Wed, 15 Apr 1992 14:39
36 lines
1550 bytes
1550 bytes
* pathchk.c (validate_new_path): the error message is misleading if a
component of the path exceeds the limit
* printf.c (print_esc): escape sequences are not handled correctly
(try printf 'a\012b\n')
diff -ur orig/pathchk.c ./pathchk.c
--- orig/pathchk.c Tue Dec 24 08:09:22 1991
+++ ./pathchk.c Wed Apr 15 15:44:00 1992
@@ -265,7 +265,7 @@
if (length > name_max)
{
error (0, 0, "name `%s' has length %d; exceeds limit of %d",
- path, length, name_max);
+ start, length, name_max);
return 1;
}
if (last_elem)
diff -ur orig/printf.c ./printf.c
--- orig/printf.c Fri Aug 30 07:22:45 1991
+++ ./printf.c Wed Apr 15 15:44:48 1992
@@ -208,8 +208,9 @@
}
else if (!index ("\"\\abcfnrtv", *p))
error (1, 0, "\\%c: invalid escape", *p);
- print_esc_char (*p);
- return p - escstart;
+ else
+ print_esc_char (*p++);
+ return p - escstart - 1;
}
/* Output a single-character \ escape. */
--
Andreas Schwab
schwab@ls5.informatik.uni-dortmund.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads