This is the mail archive of the cygwin-developers@sourceware.cygnus.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]

can't chmod socket files.


chmod() can't change modes of socket files, becaue symlink_check_one()
for socket files return in an incorrect manner.

ChangeLog:
Fri Oct 08 08:55:31 1999  Kazuhiro Fujieda <fujieda@jaist.ac.jp>
	* path.cc (symlink_check_one): set errno to EINVAL on socket files
	same as normal files.

--- path.cc-	Wed Sep 15 12:56:51 1999
+++ path.cc	Fri Oct 08 08:55:31 1999
@@ -2173,6 +2173,7 @@ symlink_check_one (const char *in_path, 
 	    {
 	      res = 0;
 	      *pflags |= PATH_SOCKET;
+	      goto close_and_return;
 	    }
 	  else if (*pflags & PATH_EXEC)
 	    goto close_and_return;

____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

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