aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c20
1 files changed, 0 insertions, 20 deletions
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)
5702 * allocated space. Do it only when we know it is safe. 5702 * allocated space. Do it only when we know it is safe.
5703 */ 5703 */
5704 fname = redir->nfile.expfname; 5704 fname = redir->nfile.expfname;
5705#if ENABLE_PLATFORM_MINGW32
5706 /* Support for /dev/null */
5707 switch (redir->nfile.type) {
5708 case NFROM:
5709 case NFROMTO:
5710 case NTO:
5711#if BASH_REDIR_OUTPUT
5712 case NTO2:
5713#endif
5714 case NCLOBBER:
5715 case NAPPEND:
5716 if (!strncmp(fname, "/dev/", 5)) {
5717 if (!strcmp(fname+5, "null"))
5718 return open(fname,O_RDWR);
5719 ash_msg_and_raise_error("Unhandled device %s\n", fname);
5720 return -1;
5721 }
5722 break;
5723 }
5724#endif
5725 5705
5726 switch (redir->nfile.type) { 5706 switch (redir->nfile.type) {
5727 default: 5707 default: