"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libpromises/evalfunction.c" between
cfengine-3.12.5.tar.gz and cfengine-3.12.6.tar.gz

About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version. LTS (Long Term Support) release.

evalfunction.c  (cfengine-3.12.5):evalfunction.c  (cfengine-3.12.6)
skipping to change at line 3973 skipping to change at line 3973
/*********************************************************************/ /*********************************************************************/
static FnCallResult FnCallFileStat(ARG_UNUSED EvalContext *ctx, ARG_UNUSED const Policy *policy, const FnCall *fp, const Rlist *finalargs) static FnCallResult FnCallFileStat(ARG_UNUSED EvalContext *ctx, ARG_UNUSED const Policy *policy, const FnCall *fp, const Rlist *finalargs)
{ {
char *path = RlistScalarValue(finalargs); char *path = RlistScalarValue(finalargs);
struct stat statbuf; struct stat statbuf;
if (lstat(path, &statbuf) == -1) if (lstat(path, &statbuf) == -1)
{ {
if (StringSafeEqual(fp->name, "filesize")) if (StringEqual(fp->name, "filesize"))
{ {
return FnFailure(); return FnFailure();
} }
return FnReturnContext(false); return FnReturnContext(false);
} }
if (!strcmp(fp->name, "isexecutable")) if (!strcmp(fp->name, "isexecutable"))
{ {
if (S_ISLNK(statbuf.st_mode) && stat(path, &statbuf) == -1) if (S_ISLNK(statbuf.st_mode) && stat(path, &statbuf) == -1)
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)