In the aforementioned function, we have:
if (!access (filename, F_OK)) return 0;
0 means it is okay to access the specified file. However, it could be that
access returns EACCESS. In this case we should probably not return 0.
In the aforementioned function, we have:
if (!access (filename, F_OK)) return 0;
0 means it is okay to access the specified file. However, it could be that
access returns EACCESS. In this case we should probably not return 0.
I recently di this change:
+ return !access (filename, R_OK)? 0 : gpg_error (GPG_ERR_EACCES);
(commit 5d13581f4737c18430f6572dd4ef486d1ad80dd1)
Does that solve your problem?