man手册里这样描述chmod()这个函数。chmod() changes the permissions of the file specified whose pathname is given in path, which is dereferenced if it is a symbolic link.
这里的derefrenced要怎么理解,我理解是取消引用,所以对一个软链接修改权限应该不会影响软链接所指向的文件的权限才对,可是实际操作却是会影响,而且据我所知软链接的权限一直是777,没法修改的。
没有C币了,不能悬赏,不好意思。