freeipmi/freeipmi-0.4.6-open.patch
2007-11-07 15:12:58 +00:00

25 lines
1.2 KiB
Diff

diff -up freeipmi-0.4.6/bmc-config/src/bmc-config-argp.c.open freeipmi-0.4.6/bmc-config/src/bmc-config-argp.c
--- freeipmi-0.4.6/bmc-config/src/bmc-config-argp.c.open 2007-11-06 17:00:11.000000000 +0100
+++ freeipmi-0.4.6/bmc-config/src/bmc-config-argp.c 2007-11-06 17:01:34.000000000 +0100
@@ -323,7 +323,7 @@ bmc_config_args_validate (struct bmc_con
else
{
int fd;
- fd = open (args->filename, O_CREAT);
+ fd = open (args->filename, O_CREAT, 0644);
if (fd == -1)
{
perror (args->filename);
diff -up freeipmi-0.4.6/pef-config/src/pef-config-argp.c.open freeipmi-0.4.6/pef-config/src/pef-config-argp.c
--- freeipmi-0.4.6/pef-config/src/pef-config-argp.c.open 2007-11-06 17:07:29.000000000 +0100
+++ freeipmi-0.4.6/pef-config/src/pef-config-argp.c 2007-11-06 17:07:43.000000000 +0100
@@ -225,7 +225,7 @@ pef_config_args_validate (struct pef_con
else
{
int fd;
- fd = open (args->filename, O_CREAT);
+ fd = open (args->filename, O_CREAT, 0644);
if (fd == -1)
{
perror (args->filename);