From: arai Date: Sun, 26 May 2002 21:43:30 +0000 (+0000) Subject: * src/lharc.c (main): never set `get_filename_from_stdin` to true. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a395defa29275d728fe872d488e78495276cb542;p=lha%2Flha.git * src/lharc.c (main): never set `get_filename_from_stdin` to true. `echo foo | lha x foo.lzh' does not work like original LHa. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@136 6a8cc165-1e22-0410-a132-eb4e3f353aba --- diff --git a/src/lharc.c b/src/lharc.c index 1e426a6..de43d3f 100644 --- a/src/lharc.c +++ b/src/lharc.c @@ -384,14 +384,15 @@ work: if (!isatty(1) && cmd == CMD_ADD) quiet = TRUE; } +#if 0 /* Comment out; IMHO, this feature is useless. by Koji Arai */ else { if (ac == 3 && !isatty(0)) { /* 1999.7.18 */ -#if !__MINGW32__ /* FIXME: Bug(?) on MinGW, isatty() return 0 on - Cygwin console. Cygwin 1.3.10(0.51/3/2) on Win2000 */ - get_filename_from_stdin = TRUE; -#endif + /* Bug(?) on MinGW, isatty() return 0 on + Cygwin console. Cygwin 1.3.10(0.51/3/2) on Win2000 */ + get_filename_from_stdin = TRUE; } } +#endif /* target file name */ if (get_filename_from_stdin) {