第1关:检查文件访问权限 本关主要考察通过编程来检查当前用户对文件访问权限,通过当前存在的文件进行判断文件是否存在并检查当前用户的访问权限。 #include <unistd.h> int access_file1 (const char*filename) { int ret =