Borland C++ found these
This commit is contained in:
3
main.c
3
main.c
@ -13,7 +13,7 @@
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.81 2007/07/01 19:04:53 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.82 2007/07/01 21:10:29 tg Exp $");
|
||||
|
||||
extern char **environ;
|
||||
|
||||
@ -1024,7 +1024,6 @@ check_fd(const char *name, int mode, const char **emsgp)
|
||||
int fd, fl;
|
||||
|
||||
if (ksh_isdigit(name[0]) && !name[1]) {
|
||||
fd = name[0] - '0';
|
||||
if ((fl = fcntl(fd = name[0] - '0', F_GETFL, 0)) < 0) {
|
||||
if (emsgp)
|
||||
*emsgp = "bad file descriptor";
|
||||
|
Reference in New Issue
Block a user