freebsd-ports/sysutils/cfengine38/files/patch-cf-agent_verify__storage.c
Steven Kreuzer d0d4cae1ce Add a patch to address upstream bug CFE-1803 (Storage promises do not unmount
the filesystem as promised)

Reviewed by:	cy@, gjb@
Approved by:	cy@
Differential Revision:	D6186
2016-05-04 12:52:33 +00:00

11 lines
544 B
C

--- cf-agent/verify_storage.c.orig 2016-05-03 13:42:49 UTC
+++ cf-agent/verify_storage.c
@@ -132,7 +132,7 @@ PromiseResult VerifyStoragePromise(EvalC
PromiseResult result = PROMISE_RESULT_NOOP;
#ifndef __MINGW32__
- if ((SeqLength(GetGlobalMountedFSList())) && (!LoadMountInfo(GetGlobalMountedFSList())))
+ if ((!SeqLength(GetGlobalMountedFSList())) && (!LoadMountInfo(GetGlobalMountedFSList())))
{
Log(LOG_LEVEL_ERR, "Couldn't obtain a list of mounted filesystems - aborting");
YieldCurrentLock(thislock);