~vcs-imports/make/master

« back to all changes in this revision

Viewing changes to src/file.c

  • Committer: Paul Smith
  • Author(s): Dmitry Goncharov
  • Date: 2024-10-02 02:14:31 UTC
  • Revision ID: git-v1:93704dd565e12a81f44ad4e98abfbef82227f63e
[SV 66268] Include newlines in file removal error message

* src/file.c (remove_intermediates): Fix an error message about a
failure to remove an intermediate file.
* tests/scripts/features/patternrules: Add tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
                  }
433
433
                if (status < 0)
434
434
                  {
435
 
                    perror_with_name ("\nunlink: ", f->name);
 
435
                    if (doneany)
 
436
                      fputs ("\n", stdout);
 
437
                    fflush (stdout);
 
438
                    perror_with_name ("unlink: ", f->name);
436
439
                    /* Start printing over.  */
437
440
                    doneany = 0;
438
441
                  }