Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Make sure the system flags utility creates the flag directory with 77…
Browse files Browse the repository at this point in the history
…7 permissions. That ensures that all users (root included) can create flags there as necessary.
  • Loading branch information
Ken Moore committed Mar 24, 2014
1 parent 21ed732 commit 3584759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-qt4/libpcbsd/utils/pcbsd-sysFlags.h
Expand Up @@ -27,7 +27,7 @@ class SystemFlags{


static void setFlag( SYSFLAG flag, QString contents = ""){ static void setFlag( SYSFLAG flag, QString contents = ""){
if(!QFile::exists(FLAGDIR)){ if(!QFile::exists(FLAGDIR)){
pcbsd::Utils::runShellCommand("mkdir -p -m 666 "+FLAGDIR); pcbsd::Utils::runShellCommand("mkdir -p -m 777 "+FLAGDIR);
if( !QFile::exists(FLAGDIR) ){ return; } if( !QFile::exists(FLAGDIR) ){ return; }
} }
QString cmd; QString cmd;
Expand Down

0 comments on commit 3584759

Please sign in to comment.