From e4910c9e5cae89691512bec4145f66b63e406936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Mon, 23 Jun 2008 22:24:11 +0200 Subject: Add dynamic metafile path In some situations it may be useful to have multiple sets of metadata for the same hierarchy (e.g. representing how a file set should appear on different hosts). The ability to select a metadata file may be useful in this case. Patch by Sergio Callegari --- metaentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'metaentry.c') diff --git a/metaentry.c b/metaentry.c index c06fd3d..a557a93 100644 --- a/metaentry.c +++ b/metaentry.c @@ -576,7 +576,7 @@ mentry_compare(struct metaentry *left, struct metaentry *right, bool do_mtime) if ((left->mode & S_IFMT) != (right->mode & S_IFMT)) retval |= DIFF_TYPE; - if (do_mtime && strcmp(left->path, METAFILE) && + if (do_mtime && strcmp(left->path, metafile) && (left->mtime != right->mtime || left->mtimensec != right->mtimensec)) retval |= DIFF_MTIME; -- cgit v1.2.1