This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: binmode for UNC paths


Hi!

Thursday, 11 October, 2001 Charles Wilson cwilson@ece.gatech.edu wrote:

>> currently, files like '//server/share/path/to/file' are opened in
>> text mode, if only '//server/share/path/to/' doesn't belong to any
>> mount. mounting every share is not always possible, and otherwise
>> there's no way to make such files to be opened in binary mode.
>> attached patch uses 'binmode' from CYGWIN environment variable to
>> determine default mode. Comments?

CW> I thought binmode was only supposed to affect pipe behavior, not mount 
CW> behavior -- this patch conflates the two.  Wouldn't it be better to key 
CW> off of the mount mode for /cygdrive/ ?  We're talking about the "default 
CW> mount mode" for non-explicit "auto-mounts" in both cases... 
CW> "/cygdrive/x/" and "//unc/share/"

this sounds like a good idea. updated patch attached.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19

binmode-on-unc-paths.ChangeLog

binmode-on-unc-paths.diff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]