diff src/image.c @ 1362:b3156b2ec4c5

Improve file checks using is_readable_file().
author zas_
date Sun, 01 Mar 2009 17:13:14 +0000
parents 8f3d44564146
children d87deb05d59f
line wrap: on
line diff
--- a/src/image.c	Sun Mar 01 17:11:51 2009 +0000
+++ b/src/image.c	Sun Mar 01 17:13:14 2009 +0000
@@ -206,7 +206,7 @@
 		{
 		const gchar *file = options->color_profile.input_file[imd->color_profile_input - COLOR_PROFILE_FILE];
 	
-		if (!access_file(file, R_OK)) return FALSE;
+		if (!is_readable_file(file)) return FALSE;
 
 		input_type = COLOR_PROFILE_FILE;
 		input_file = file;
@@ -223,7 +223,7 @@
 		}
 
 	if (imd->color_profile_screen == 1 &&
-	    access_file(options->color_profile.screen_file, R_OK))
+	    is_readable_file(options->color_profile.screen_file))
 		{
 		screen_type = COLOR_PROFILE_FILE;
 		screen_file = options->color_profile.screen_file;
@@ -752,7 +752,7 @@
 	else
 		{
 
-		if (isfile(imd->image_fd->path))
+		if (is_readable_file(imd->image_fd->path))
 			{
 			PixbufRenderer *pr;