From b7e96e4498bc59604b672f388294e7f839a3cd4b Mon Sep 17 00:00:00 2001 From: Jay Schroeder Date: Thu, 27 Aug 2009 18:16:25 -0500 Subject: [PATCH] kcm tool fix for the keyboard output permissions This patch adds read permission for everyone to the output files of the kcm tool. The compiled keycharmap files need to be able to be read by everyone. This fixes a problem at startup being unable to read the *.kcm.bin files located at /system/usr/keychars. --- tools/kcm/kcm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kcm/kcm.cpp b/tools/kcm/kcm.cpp index 3e6320b65..23ac37726 100644 --- a/tools/kcm/kcm.cpp +++ b/tools/kcm/kcm.cpp @@ -198,7 +198,7 @@ main(int argc, char** argv) return 1; } - int out = open(outfilename, O_RDWR|O_CREAT|O_TRUNC, 0660); + int out = open(outfilename, O_RDWR|O_CREAT|O_TRUNC, 0664); if (out == -1) { fprintf(stderr, "kcm: error opening file for write: %s\n", outfilename); return 1; -- 2.11.0