summaryrefslogtreecommitdiff
path: root/lib/Output.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-12-08 13:57:52 +0000
committerPixel <Pixel>2001-12-08 13:57:52 +0000
commita83a43e57be59ed407d98f465d02953af5ae0160 (patch)
tree91aa1ea4a24e5b85ef26686828054e858cec21aa /lib/Output.cc
parentc54dfe9b844f6c5d8969669f5144e721e2af82b0 (diff)
*hum* some changes...
Diffstat (limited to 'lib/Output.cc')
-rw-r--r--lib/Output.cc4
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));
}
}