Fix: depend was messing the line endings in append mode

This commit is contained in:
glx 2019-01-15 02:28:05 +01:00 committed by Charles Pigott
parent ee84f98f1e
commit 1106534262

View File

@ -1008,7 +1008,7 @@ int main(int argc, char *argv[])
fclose(src);
/* Then append it to the real file. */
src = fopen(backup, "rb");
src = fopen(backup, "r");
while (fgets(content, size, src) != NULL) {
fputs(content, dst);
if (!strncmp(content, delimiter, strlen(delimiter))) found_delimiter = true;