Date: Tue, 25 Mar 2003 01:32:00 +0900 (JST) From: KAJIMOTO Masato <kajimoto@iijmio-mail.jp> To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: kajimoto@iijmio-mail.jp Subject: Re: bin/44504: tcsh-6.12.00's "source" command ignore commands over 4kb with ja_JP.EUC locale Message-ID: <20030325.013200.74744115.kajimoto@iijmio-mail.jp> In-Reply-To: <200210261950.g9QJo19f090930@freefall.freebsd.org> References: <200210261942.g9QJglfM006495@www.freebsd.org> <200210261950.g9QJo19f090930@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Please someone commit this patch to fix tcsh-6.12.00's bug.
diff -c src/contrib/tcsh.orig/sh.c src/contrib/tcsh/sh.c
*** src/contrib/tcsh.orig/sh.c Sat Jul 6 01:28:16 2002
--- src/contrib/tcsh/sh.c Tue Mar 4 21:10:53 2003
***************
*** 1010,1016 ****
--- 1010,1026 ----
* descriptor to hold the name of the script (setuid case) and this name
* mustn't be lost by closing the fd too soon.
*/
+ #ifdef NLS_BUGS
+ #ifdef NLS_CATALOGS
+ (void)catclose(catd);
+ #endif /* NLS_CATALOGS */
+ #endif /* NLS_BUGS */
closem();
+ #ifdef NLS_BUGS
+ #ifdef NLS_CATALOGS
+ nlsinit();
+ #endif /* NLS_CATALOGS */
+ #endif /* NLS_BUGS */
/*
* Consider input a tty if it really is or we are interactive. but not for
***************
*** 2360,2372 ****
void
initdesc()
{
- #ifdef NLS_BUGS
- #ifdef NLS_CATALOGS
- (void)catclose(catd);
- #endif /* NLS_CATALOGS */
- #endif /* NLS_BUGS */
-
-
didfds = 0; /* 0, 1, 2 aren't set up */
(void) close_on_exec(SHIN = dcopy(0, FSHIN), 1);
(void) close_on_exec(SHOUT = dcopy(1, FSHOUT), 1);
--- 2370,2375 ----
***************
*** 2377,2387 ****
#endif /* CLOSE_ON_EXEC */
isdiagatty = isatty(SHDIAG);
isoutatty = isatty(SHOUT);
- #ifdef NLS_BUGS
- #ifdef NLS_CATALOGS
- nlsinit();
- #endif /* NLS_CATALOGS */
- #endif /* NLS_BUGS */
}
--- 2380,2385 ----
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030325.013200.74744115.kajimoto>
