Diff
Not logged in

Differences From Artifact [6faa6e4cc2]:

To Artifact [87a3c9b521]:


239
240
241
242
243
244
245









246
247
248
249
250
251
252
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261







+
+
+
+
+
+
+
+
+







  }else{
    Blob content;
    blob_set(&content, zTargetFile);
    blob_write_to_file(&content, zLinkFile);
    blob_reset(&content);
  }
}

void checked_symlink_create(int needDelete, int needLink, int maybeLink, Blob* blob, const char* zName){
  if (needDelete && (needLink || maybeLink))
    link_delete(zName);
  if (needLink)
    symlink_create(blog_str(blob), zName);
  else
    blog_write_to_file(blob, zName);
}

/*
** Copy symbolic link from zFrom to zTo.
*/
void symlink_copy(const char *zFrom, const char *zTo){
  Blob content;
  blob_read_link(&content, zFrom);