Add isatty check when change STDERR_FILENO to a file

This commit is contained in:
JohnnySun
2015-03-05 21:32:05 +08:00
parent b875797839
commit 2de1ef639b
5 changed files with 53 additions and 22 deletions
+2
View File
@@ -1093,6 +1093,8 @@ int main(int argc, char **argv)
opterr = 0;
USE_TTY();
while ((c = getopt_long(argc, argv, "f:s:p:l:k:t:m:c:i:d:a:uv",
long_options, &option_index)) != -1) {
switch (c) {