14 lines
466 B
Text
14 lines
466 B
Text
|
$NetBSD: patch-ad,v 1.1 2007/10/03 22:06:39 bsadewitz Exp $
|
||
|
|
||
|
--- src/SegmentMan.cc.orig 2007-09-01 12:10:30.000000000 -0400
|
||
|
+++ src/SegmentMan.cc
|
||
|
@@ -143,7 +143,7 @@ void SegmentMan::save() const {
|
||
|
segFilename.c_str(), strerror(errno));
|
||
|
}
|
||
|
|
||
|
- if(rename(segFilenameTemp.c_str(), segFilename.c_str()) == -1) {
|
||
|
+ if(!File(segFilenameTemp).renameTo(segFilename)) {
|
||
|
throw new DlAbortEx(EX_SEGMENT_FILE_WRITE,
|
||
|
segFilename.c_str(), strerror(errno));
|
||
|
}
|