]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cdrom.cc
* Swedish translation update. Closes: #592366
[apt.git] / apt-pkg / cdrom.cc
index 93deb49c48086794d3c0b829d4bafc3c80521ce1..e3e0027fcadfad9004388322b613643d93ccde13 100644 (file)
@@ -383,7 +383,7 @@ bool pkgCdrom::WriteDatabase(Configuration &Cnf)
 
    Out.close();
    
-   rename(DFile.c_str(),string(DFile + '~').c_str());
+   link(DFile.c_str(),string(DFile + '~').c_str());
    if (rename(NewFile.c_str(),DFile.c_str()) != 0)
       return _error->Errno("rename","Failed to rename %s.new to %s",
                           DFile.c_str(),DFile.c_str());