Skip to content

Commit

Permalink
path-util: Add hidden suffixes for ucf (systemd#3131)
Browse files Browse the repository at this point in the history
ucf is a standard Debian helper for managing configuration file upgrades which
need more interaction or elaborate merging than conffiles managed by dpkg.
Ignore its temporary and backup files similarly to the *.dpkg-* ones to avoid
creating units for them in generators.

https://bugs.debian.org/775903
  • Loading branch information
martinpitt authored and zonque committed Apr 27, 2016
1 parent 8eb8517 commit 739d638
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/basic/path-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,9 @@ bool hidden_file_allow_backup(const char *filename) {
endswith(filename, ".dpkg-bak") ||
endswith(filename, ".dpkg-backup") ||
endswith(filename, ".dpkg-remove") ||
endswith(filename, ".ucf-new") ||
endswith(filename, ".ucf-old") ||
endswith(filename, ".ucf-dist") ||
endswith(filename, ".swp");
}

Expand Down

0 comments on commit 739d638

Please sign in to comment.