delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/10/07/21:13:12

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-developers-unsubscribe-archive-cygwin-developers=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: can't chmod socket files.
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 08 Oct 1999 10:12:54 +0900
Message-ID: <s1shfk2ac4p.fsf@jaist.ac.jp>
Lines: 23
X-Mailer: Gnus v5.3/Emacs 19.34

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 AT jaist DOT ac DOT 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 AT jaist DOT ac DOT jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019