diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-15 09:11:14 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-03-15 09:11:14 +0000 |
commit | f011d7284d8cabe5d453b43d4df44d0423db22c8 (patch) | |
tree | a977947524838edd2915bd2861bda25b25f72376 /win32 | |
parent | 94cf1f830d25409ba80b0933075e026e41fe0e3c (diff) | |
download | busybox-w32-f011d7284d8cabe5d453b43d4df44d0423db22c8.tar.gz busybox-w32-f011d7284d8cabe5d453b43d4df44d0423db22c8.tar.bz2 busybox-w32-f011d7284d8cabe5d453b43d4df44d0423db22c8.zip |
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.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index 981c50415..7fe5a6f05 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -181,8 +181,10 @@ int mingw_open (const char *filename, int oflags, ...) | |||
181 | devrand = 1; | 181 | devrand = 1; |
182 | } | 182 | } |
183 | 183 | ||
184 | if (devnull || devzero || devrand ) | 184 | if (devnull || devzero || devrand ) { |
185 | filename = "nul"; | 185 | filename = "nul"; |
186 | oflags = O_RDWR; | ||
187 | } | ||
186 | } | 188 | } |
187 | fd = open(filename, oflags, mode); | 189 | fd = open(filename, oflags, mode); |
188 | if (fd < 0 && (oflags & O_ACCMODE) != O_RDONLY && errno == EACCES) { | 190 | if (fd < 0 && (oflags & O_ACCMODE) != O_RDONLY && errno == EACCES) { |