Config files were being incorrectly detected, with the
effect that all /etc/ files were being added to hostfiles.
(* No per-file metadata like in RPM, but we can synthesize it
* from the path.
*)
- let config = statbuf.st_kind = S_REG && string_prefix path "/etc/" in
+ let config = statbuf.st_kind = S_REG && string_prefix "/etc/" path in
let mode = statbuf.st_perm in
(* No per-file metadata like in RPM, but we can synthesize it
* from the path.
*)
- let config = statbuf.st_kind = S_REG && string_prefix path "/etc/" in
+ let config = statbuf.st_kind = S_REG && string_prefix "/etc/" path in
let mode = statbuf.st_perm in