Diff
Not logged in

Differences From Artifact [87a3c9b521]:

To Artifact [360fa10619]:


240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
    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;







|
|


|

|







240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
    Blob content;
    blob_set(&content, zTargetFile);
    blob_write_to_file(&content, zLinkFile);
    blob_reset(&content);
  }
}

void create_symlink_or_file(int mayNeedDelete, int needLink, int mayBeLink, Blob* blob, const char* zName){
  if (mayNeedDelete && (needLink || mayBeLink))
    link_delete(zName);
  if (needLink)
    symlink_create(blob_str(blob), zName);
  else
    blob_write_to_file(blob, zName);
}

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