diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-02-08 07:57:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-02-08 07:57:37 +0000 |
commit | ed1a862cdb8e86db4de96fe5e25d0634207ad0ae (patch) | |
tree | 5b449d112576461c61c55fe9ae63f6ac9830fe3b | |
parent | 946142ab90426f060d5a09f47f560d5aebb37afb (diff) |
Add some permissions when creating the logfile
-rw-r--r-- | ldso/ldso/ldso.c | 6 |
1 files 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); } } } |