diff options
Diffstat (limited to 'lib/Output.cc')
-rw-r--r-- | lib/Output.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |