[PATCH 24/28] cmapctl: Remove unnecessary access check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 tools/corosync-cmapctl.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/tools/corosync-cmapctl.c b/tools/corosync-cmapctl.c
index 46afee2..7e23ab0 100644
--- a/tools/corosync-cmapctl.c
+++ b/tools/corosync-cmapctl.c
@@ -673,11 +673,6 @@ static void read_in_config_file(cmap_handle_t handle, char * filename)
 	char *key_type_s;
 	char *key_value_s;
 
-	if (access (filename, R_OK) != 0) {
-		perror ("Couldn't access file.");
-		return;
-	}
-
 	fh = fopen(filename, "r");
 	if (fh == NULL) {
 		perror ("Couldn't open file.");
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux