mbox

[v2,2/5] util: add new function copy

Message ID 1500315582-17181-2-git-send-email-jonatan.schlag@ipfire.org
State Superseded
Headers

Message

Jonatan Schlag July 18, 2017, 4:19 a.m. UTC
  Just one short note, I could also insted of rmoving the destintaion if she exists,
allow fwrite to overired files. I did not do this because it would first maybe break code
when the function fwrite is used. Second it is easier to remove the destintaion and
so allow fwrite writing the content to a plain file, then changing the function so that fwrite override files.
It is easy to remove a file bevore but appending to a file with a function that overried files is not possible.
So I think it is the best to keep this feature of fwrite and when somebody wants to override a file he has to remove it before.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/functions/functions.util | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)