This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Data streams being treated as files in Cygwin
- From: Vishwanath_Karthik at emc dot com
- To: <cygwin at cygwin dot com>
- Cc: <Copet_Eric at emc dot com>, <cormier_annette at emc dot com>, <barbini at emc dot com>, <Ladouce_Frederic at emc dot com>, <grenier_bob at emc dot com>, <li_amy at emc dot com>
- Date: Thu, 11 May 2006 10:17:29 -0400
- Subject: Data streams being treated as files in Cygwin
Hi,
There seems to a problem on how the data streams are handled in Cygwin.
Cygwin is treating a data stream as a file which should not be the case.
Following are the steps followed to create and access a data stream using cygwin shell in Windows environment.
Sh-3.1$ echo "data1" > test00
Sh-3.1$ echo "data1" > test00:stream
Now test00 is a file and test00:stream is a data stream associated with the file test00
When we do an "ls" at this path we are able to see only test00 file and not the stream test00:stream -> this functionality is OK as streams cannot be locked and also it is not a file
In one of the perl scripts when we did a file test for both "test00" and "test00:stream" ,both succeeded even though "test00:stream" is not a file
The network traces of the shell command "test -f test00:stream" showed that Cygwin opens the file "test00:stream" instead of sending a server reply "NO file found"
So a patch has to be applied to resolve this issue. Can you please provide us with a patch so that the data streams are handled as expected .
Thanks and Regards,
Karthik
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/