diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-12-09 16:12:20 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-12-09 16:13:19 +0000 |
commit | bcbbfa520a49967b3301243ebffdfefcd58c069a (patch) | |
tree | 47ba839163c54ffa0c505b47141bd0434804975c | |
parent | 84c0f5a48ca0a65d850428da23a27b9bbb97db07 (diff) | |
download | febootstrap-bcbbfa520a49967b3301243ebffdfefcd58c069a.tar.gz febootstrap-bcbbfa520a49967b3301243ebffdfefcd58c069a.tar.xz febootstrap-bcbbfa520a49967b3301243ebffdfefcd58c069a.zip |
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.
-rw-r--r-- | febootstrap_debian.ml | 2 | ||||
-rw-r--r-- | 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 |