rc_newer_than no longer tests if souce has data, making it a more logical function. As such, we add the existss function to check for existance and size when checking to see if the deptree needs an update.
This commit is contained in:
@@ -111,6 +111,12 @@ static inline bool exists (const char *pathname)
|
||||
return (stat (pathname, &buf) == 0);
|
||||
}
|
||||
|
||||
static inline bool existss (const char *pathname)
|
||||
{
|
||||
struct stat buf;
|
||||
|
||||
return (stat (pathname, &buf) == 0 && buf.st_size != 0);
|
||||
}
|
||||
char *rc_conf_value (const char *var);
|
||||
bool rc_conf_yesno (const char *var);
|
||||
char **env_filter (void);
|
||||
|
||||
Reference in New Issue
Block a user