delorie.com/archives/browse.cgi | search |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |