changeset 698:2700db14aaa6

Use access() instead of g_access() which is only available in 2.8.
author zas_
date Tue, 20 May 2008 20:06:11 +0000
parents 24b9ee2fffff
children 9873d695a9c1
files src/secure_save.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/secure_save.c	Tue May 20 19:14:36 2008 +0000
+++ b/src/secure_save.c	Tue May 20 20:06:11 2008 +0000
@@ -112,7 +112,7 @@
 		} else {
 #ifdef HAVE_ACCESS
 			/* XXX: access() do not work with setuid programs. */
-			if (g_access(ssi->file_name, R_OK | W_OK) < 0) {
+			if (access(ssi->file_name, R_OK | W_OK) < 0) {
 				ssi->err = errno;
 				secsave_errno = SS_ERR_ACCESS;
 				goto free_file_name;