clearlinux / swupd-server

Software update server (deprecated)
Other
13 stars 17 forks source link

Fix fallthrough state detection logic #40

Closed phmccarty closed 7 years ago

phmccarty commented 7 years ago

This conditional checks for state directories that are generally installed by default, and the conditional immediately below this one checks for state files within these directories. So, if we do strncmp() instead of strcmp(), the fallthrough logic doesn't occur, and state files are not marked as such.

This reverts commit 63fb5fb61bc95525635deb2b0f4bdbf9d1e0e1ae.

Signed-off-by: Patrick McCarty patrick.mccarty@intel.com

phmccarty commented 7 years ago

I will add a functional test.

phmccarty commented 7 years ago

Added a commit with a functional test.