Skip to content
Snippets Groups Projects
Commit eb349bf2 authored by marco's avatar marco
Browse files

force creating of symlink, even if file already exists

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2596 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent fc99eb02
Branches
Tags
No related merge requests found
...@@ -61,10 +61,10 @@ void AdminRights::Release() ...@@ -61,10 +61,10 @@ void AdminRights::Release()
void AdminRights::CreateLink(const String& from, const String& to) void AdminRights::CreateLink(const String& from, const String& to)
{ {
static const char* minus_s="-s"; static const char* minus_sf="-sf";
// const_casts are gross, but at least that way we keep gcc happy // const_casts are gross, but at least that way we keep gcc happy
char* const args[]={ char* const args[]={
const_cast<char*>(minus_s), const_cast<char*>(minus_sf),
const_cast<char*>(from.c_str()), const_cast<char*>(from.c_str()),
const_cast<char*>(to.c_str()), const_cast<char*>(to.c_str()),
NULL NULL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment