From: Richard W.M. Jones Date: Thu, 9 Dec 2010 16:12:20 +0000 (+0000) Subject: debian, pacman: incorrect detection of config files. X-Git-Tag: 3.3~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=bcbbfa520a49967b3301243ebffdfefcd58c069a;p=febootstrap.git 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. --- 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