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

svn at pcbsd.org svn at pcbsd.org
Thu Apr 4 12:12:22 PDT 2013


Author: kenmoore
Date: 2013-04-04 19:12:21 +0000 (Thu, 04 Apr 2013)
New Revision: 22068

Modified:
   pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp
Log:
Make sure that mounted devices are given user permissions to read/write



Modified: pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp	2013-04-04 18:09:39 UTC (rev 22067)
+++ pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp	2013-04-04 19:12:21 UTC (rev 22068)
@@ -201,6 +201,7 @@
   //Prepare the commands to run
   QString cmd1 = "mkdir " + mntpoint;
   QString cmd2 = fstype + " " +fsopts + " " + device + " " + mntpoint;
+  QString cmd3 = "chmod 777 " + mntpoint; //to set full user/root access
   
   qDebug() << "Mounting device" << device << "on" << mntpoint << "("<<filesystem<<")";
   if(DEBUG_MODE){ qDebug() << " - command:" << cmd2; }
@@ -215,6 +216,7 @@
     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