[PC-BSD Commits] r22069 - pcbsd/current/src-qt4/pc-mounttray

svn at pcbsd.org svn at pcbsd.org
Thu Apr 4 14:11:17 PDT 2013


Author: kenmoore
Date: 2013-04-04 21:11:16 +0000 (Thu, 04 Apr 2013)
New Revision: 22069

Modified:
   pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp
Log:
Make sure that the mount tray sets the directory permissions before mounting the device



Modified: pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp	2013-04-04 19:12:21 UTC (rev 22068)
+++ pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp	2013-04-04 21:11:16 UTC (rev 22069)
@@ -211,12 +211,12 @@
   //Run the mounting commands
   QStringList output = Utils::runShellCommand(cmd1);
   if( output.join(" ").simplified().isEmpty() ){
-    //directory created, run the next command
+    //directory created, run the next commands
+    system(cmd3.toUtf8()); //set directory permissions before mounting device
     output = Utils::runShellCommand(cmd2);
     if( output.join(" ").simplified().isEmpty() ){
       title = tr("Success");
       result = QString( tr("%1 mounted at %2") ).arg(deviceName).arg(mntpoint);
-      system(cmd3.toUtf8()); //set permissions
       ok = TRUE;
     }else{
       qDebug() << "pc-mounttray: Error mounting device:" << device;



More information about the Commits mailing list