我尝试通过以下方式获取 /etc/resolv.conf 打开(“/etc/resolv.conf”,0644)
但它返回-1并且errno是2这意味着“没有这样的文件”
我能做些什么?
您无法访问应用程序沙箱之外的文件。