Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-calculators/transcalc/files: transcalc-0.14-fd-perm.patch
Date: Tue, 05 Jan 2010 22:53:44
Message-Id: E1NSIHV-0002RD-28@stork.gentoo.org
1 bicatali 10/01/05 22:53:41
2
3 Added: transcalc-0.14-fd-perm.patch
4 Log:
5 Added a patch from Debian on file permission, fixed some syntax errors, and cleaned up
6 (Portage version: 2.2_rc61/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch?rev=1.1&content-type=text/plain
13
14 Index: transcalc-0.14-fd-perm.patch
15 ===================================================================
16 Index: transcalc-0.14/src/transcalc.c
17 ===================================================================
18 --- transcalc-0.14.orig/src/transcalc.c 2009-05-19 22:00:01.000000000 -0400
19 +++ transcalc-0.14/src/transcalc.c 2009-05-19 22:01:22.000000000 -0400
20 @@ -146,7 +146,7 @@
21 /* see if config file exists */
22 if (stat (config_filename, config_file_stat) != 0) {
23 /* config file missing, so touch it */
24 - config_file_fd = open (config_filename, O_CREAT);
25 + config_file_fd = open (config_filename, O_CREAT, 0644);
26 if (config_file_fd == -1)
27 {
28 perror ("open[config_file]");