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

Prevent running as root user #1784

Merged
merged 1 commit into from
Feb 25, 2015
Merged

Prevent running as root user #1784

merged 1 commit into from
Feb 25, 2015

Conversation

tresf
Copy link
Member

@tresf tresf commented Feb 25, 2015

Closes #1770

@tresf tresf mentioned this pull request Feb 25, 2015
@tresf
Copy link
Member Author

tresf commented Feb 25, 2015

Test results:

image

@@ -137,6 +142,14 @@ int main( int argc, char * * argv )
}
}

#ifndef LMMS_WIN32
Copy link
Member Author

Choose a reason for hiding this comment

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

Whoops... typo here... should be LMMS_BUILD_WIN32. Travis is pissed off at me now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Travis is pissed off at me now.

Im close to turning it off on my repo, that or pay for the osx builds, my inbox is full of travis fail emails.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, @lukas-w should probably look into why it is failing... Looks like Homebrew is breaking on a package dependency. I can see why it would be particularly annoying for those that have many open pull requests.... :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Its not a new thing, ever since lmms had travis build osx, my local repo fails every time, hence considering paying for osx on my reapo if it's cheep enough, according to my inbox, travis failed is my new best friend :) lol

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh... I see what you are saying... I wonder if there's a way to edit the YML to only run the script for LMMS/lmms so that the PRs can be flagged as pass/fail without bugging out the forks.

@tresf tresf force-pushed the master branch 4 times, most recently from d4d80cd to 02bb058 Compare February 25, 2015 03:46
@tresf
Copy link
Member Author

tresf commented Feb 25, 2015

Added warning message on win32 so it doesn't complain about unused variable.... 😆

else if( argc > i && QString( argv[i] ) == "--allowroot" )
{
// Ignore, processed earlier
#ifndef LMMS_BUILD_WIN32
Copy link
Member Author

Choose a reason for hiding this comment

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

DOH! #ifdef, not #ifndef :)

@tresf
Copy link
Member Author

tresf commented Feb 25, 2015

Fixed the win32 used variable problem by adding a warning to win32 when the --allowroot param is supplied (thus using it).

Travis looks good. Merging.

Please blame me if problems arise from this, but I think it is good.

tresf added a commit that referenced this pull request Feb 25, 2015
Prevent running as root user
@tresf tresf merged commit 3230a69 into LMMS:master Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants