From a83a43e57be59ed407d98f465d02953af5ae0160 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 8 Dec 2001 13:57:52 +0000 Subject: *hum* some changes... --- lib/Output.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Output.cc') diff --git a/lib/Output.cc b/lib/Output.cc index c85d372..27f28d2 100644 --- a/lib/Output.cc +++ b/lib/Output.cc @@ -10,10 +10,10 @@ #include "config.h" Output::Output(String no, int trunc = 1) throw (GeneralException) : - Handle(no.strlen() ? open(no.to_charp(), O_WRONLY | O_CREAT | (trunc ? O_TRUNC : O_APPEND)) : 1), + Handle(no.strlen() ? open(no.to_charp(), O_WRONLY | O_CREAT | (trunc ? O_TRUNC : O_APPEND), 00666) : dup(1)), n(no) { if (GetHandle() < 0) { - throw IOGeneral(String(_("Error opening file")) + no + _(" for writing: ") + strerror(errno)); + throw IOGeneral(String(_("Error opening file ")) + no + _(" for writing: ") + strerror(errno)); } } -- cgit v1.2.3