[Patch]: NUL and other special names
Thu Jun 3 20:24:00 GMT 2004
On Thu, 3 Jun 2004, Pierre A. Humblet wrote:
> David Fritz wrote:
> > Also, from the patch:
> > /* COM and LPT must be followed by a single digit */
> > The code in src/winsup/cygwin/devices.cc would seem to indicate that
> > the number is not limited to a single digit.
> From my tests that's the behavior on 9x, so it's appropriate code for
> managed mounts.
> Today on the list Igor indicated that PRN would soon regain its old
> behavior. My patch was more modest, just forbid using PRN (and creating
> a hard to delete file).
> Do we want to do what Igor suggested, although it's not Posix?
Well, if you intend to forbid the use of PRN, NUL, LPT*, COM*, etc, you
should probably modify the User's Guide section on DOS devices
explicitly states that the previous behavior is allowed/expected.
IMO, either the names should be special DOS devices (and allow full
functionality), or they should be non-special names that are treated just
like any other files (e.g., allowing the "aux" directory, etc). The prior
choice follows the principle of least surprise; the latter may eliminate
the need for managed mounts (eventually).
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
More information about the Cygwin-patches