pkgsrc-wip/aria2/patches/patch-aa
Blair Sadewitz fe820b8ce4 /tmp/m
2007-10-03 22:06:39 +00:00

13 lines
485 B
Text

$NetBSD: patch-aa,v 1.3 2007/10/03 22:06:39 bsadewitz Exp $
--- src/DefaultBtProgressInfoFile.cc.orig 2007-09-01 12:10:30.000000000 -0400
+++ src/DefaultBtProgressInfoFile.cc
@@ -92,7 +92,7 @@ void DefaultBtProgressInfoFile::save() {
filename.c_str(), strerror(errno));
}
- if(rename(filenameTemp.c_str(), filename.c_str()) == -1) {
+ if(!File(filenameTemp).renameTo(filename)) {
throw new DlAbortEx(EX_SEGMENT_FILE_WRITE,
filename.c_str(), strerror(errno));
}