summaryrefslogtreecommitdiff
path: root/metaentry.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2008-06-23 22:24:11 +0200
committerDavid Härdeman <david@hardeman.nu>2008-06-23 22:24:11 +0200
commite4910c9e5cae89691512bec4145f66b63e406936 (patch)
treec014857f5d7ced6557577746b70fbbc51f11ab00 /metaentry.c
parented7e4217e2eae466bab88cd425c71ac22a0340c5 (diff)
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 <sergio.callegari@gmail.com>
Diffstat (limited to 'metaentry.c')
-rw-r--r--metaentry.c2
1 files changed, 1 insertions, 1 deletions
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;