Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a posix function was called that may not exist on the server #10817

Merged
merged 1 commit into from Nov 3, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 1, 2016

refs #10721

Once merged I will issue a PR for 3.x

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Nov 1, 2016
@tsteur tsteur added this to the 2.17.1 milestone Nov 1, 2016
// does not work on windows
return;
}

$processUserAndGroup = Filechecks::getUserAndGroup();
$fileOwnerUserAndGroup = Filechecks::getOwnerOfPiwikFiles();

if($processUserAndGroup == $fileOwnerUserAndGroup) {
if (!$fileOwnerUserAndGroup || $processUserAndGroup == $fileOwnerUserAndGroup) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only compare when getOwnerOfPiwikFiles() returns a value. I noticed getOwnerOfPiwikFiles() was before already sometimes returning an empty string meaning this check might have shown the warning even though everything was fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants