From ed1a862cdb8e86db4de96fe5e25d0634207ad0ae Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 8 Feb 2004 07:57:37 +0000 Subject: Add some permissions when creating the logfile --- ldso/ldso/ldso.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index 6569d715e..5dca362b5 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -314,11 +314,11 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, struct elf_resolve *app_tpnt filename[len1] = '.'; _dl_strcpy (&filename[len1+1], tmp1); - _dl_debug_file= _dl_open (filename, O_WRONLY|O_CREAT); + _dl_debug_file= _dl_open (filename, O_WRONLY|O_CREAT, 0644); if (_dl_debug_file<0) { - _dl_debug_file = 2; - _dl_dprintf (2, "can't open file: '%s'\n",filename); + _dl_debug_file = 2; + _dl_dprintf (2, "can't open file: '%s'\n",filename); } } } -- cgit v1.2.3