From bcbbfa520a49967b3301243ebffdfefcd58c069a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 9 Dec 2010 16:12:20 +0000 Subject: [PATCH] debian, pacman: incorrect detection of config files. Config files were being incorrectly detected, with the effect that all /etc/ files were being added to hostfiles. --- febootstrap_debian.ml | 2 +- febootstrap_pacman.ml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/febootstrap_debian.ml b/febootstrap_debian.ml index c0cfbac..83c6c1a 100644 --- a/febootstrap_debian.ml +++ b/febootstrap_debian.ml @@ -107,7 +107,7 @@ let debian_list_files pkg = (* 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 diff --git a/febootstrap_pacman.ml b/febootstrap_pacman.ml index bc2a887..5076d85 100644 --- a/febootstrap_pacman.ml +++ b/febootstrap_pacman.ml @@ -109,7 +109,7 @@ let pacman_list_files pkg = (* 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 -- 1.8.3.1