Browse Source

Do not restrict .gp executability to the user

Samuel Thibault 4 years ago
parent
commit
efbe816e03
2 changed files with 3 additions and 3 deletions
  1. 1 1
      tools/starpu_fxt_data_trace.c
  2. 2 2
      tools/starpu_perfmodel_plot.c

+ 1 - 1
tools/starpu_fxt_data_trace.c

@@ -164,7 +164,7 @@ static void write_gp(char *dir, int argc, char **argv)
 	}
 
 	/* Make the gnuplot scrit executable for the owner */
-	ret = chmod(file_name, sb.st_mode|S_IXUSR);
+	ret = chmod(file_name, sb.st_mode|S_IXUSR|S_IXGRP|S_IXOTH);
 	if (ret)
 	{
 		perror("chmod");

+ 2 - 2
tools/starpu_perfmodel_plot.c

@@ -628,8 +628,8 @@ int main(int argc, char **argv)
 				STARPU_ABORT();
 			}
 
-			/* Make the gnuplot scrit executable for the owner */
-			ret = chmod(gnuplot_file_name, sb.st_mode|S_IXUSR);
+			/* Make the gnuplot scrit executable */
+			ret = chmod(gnuplot_file_name, sb.st_mode|S_IXUSR|S_IXGRP|S_IXOTH);
 			if (ret)
 			{
 				perror("chmod");