From f011d7284d8cabe5d453b43d4df44d0423db22c8 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 15 Mar 2018 09:11:14 +0000 Subject: ash: remove special treatment of device files Since device files are now handled in mingw_open there's no need for any special treatment in ash redirection. --- shell/ash.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 394022df9..778d8bd9d 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -5702,26 +5702,6 @@ openredirect(union node *redir) * allocated space. Do it only when we know it is safe. */ fname = redir->nfile.expfname; -#if ENABLE_PLATFORM_MINGW32 - /* Support for /dev/null */ - switch (redir->nfile.type) { - case NFROM: - case NFROMTO: - case NTO: -#if BASH_REDIR_OUTPUT - case NTO2: -#endif - case NCLOBBER: - case NAPPEND: - if (!strncmp(fname, "/dev/", 5)) { - if (!strcmp(fname+5, "null")) - return open(fname,O_RDWR); - ash_msg_and_raise_error("Unhandled device %s\n", fname); - return -1; - } - break; - } -#endif switch (redir->nfile.type) { default: -- cgit v1.2.3-55-g6feb