-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
@@ -137,6 +142,14 @@ int main( int argc, char * * argv ) | |||
} | |||
} | |||
|
|||
#ifndef LMMS_WIN32 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.... :)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
d4d80cd
to
02bb058
Compare
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DOH! #ifdef
, not #ifndef
:)
Fixed the win32 used variable problem by adding a warning to win32 when the Travis looks good. Merging. Please blame me if problems arise from this, but I think it is good. |
Closes #1770