Renaming a socket file adds ".lnk" to the name

Ken Brown kbrown@cornell.edu
Thu Jul 18 19:35:00 GMT 2019


The attached test case creates a socket file /tmp/mysocket and tries to rename 
it to /tmp/newsocket.  But the new name is actually /tmp/newsocket.lnk:

$ gcc -o rename_socket rename_socket.c

$ ./rename_socket.exe

$ ls -F /tmp/newsocket*
/tmp/newsocket.lnk=

I think I have a simple fix, which I'll send to cygwin-patches shortly.

Ken
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rename_socket.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190718/c2d09ae8/attachment.c>
-------------- next part --------------

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list