From 3d37005a3d0c9a90578fcb249b823f08a6c58f49 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 12 Jan 2009 23:53:13 +0000 Subject: We now warn about clock skews rc-update -u will force a regen of the dep tree rc_newer_than and rc_olderthan now take another two parameters for newest/oldest file and mtime --- src/rc/rc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/rc/rc.c') diff --git a/src/rc/rc.c b/src/rc/rc.c index d0748a9..b545960 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -9,7 +9,7 @@ */ /* - * Copyright 2007-2008 Roy Marples + * Copyright 2007-2009 Roy Marples * All rights reserved * Redistribution and use in source and binary forms, with or without @@ -944,8 +944,10 @@ main(int argc, char **argv) } /* Load our deptree */ - if ((deptree = _rc_deptree_load(®en)) == NULL) + if ((deptree = _rc_deptree_load(0, ®en)) == NULL) eerrorx("failed to load deptree"); + if (exists(RC_DEPTREE_SKEWED)) + ewarn("WARNING: clock skew detected!"); /* Clean the failed services state dir */ clean_failed(); -- cgit v1.2.3