Changeset 065b890


Ignore:
Timestamp:
01/23/14 11:35:08 (16 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
05d30e4, ac42520
Parents:
5675b55
Message:

Make sure we don't run the user ownership on the mountpoint. That code was experimental and does not work properly yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-mounttray/menuItem.cpp

    r5675b55 r065b890  
    224224  QString cmd1 = "mkdir " + mntpoint; 
    225225  QString cmd2 = fstype + " " +fsopts + " " + device + " " + mntpoint; 
    226   cmd2 = "su -m "+currentUser+" -c \""+cmd2+"\""; //add command to run as user 
     226  //cmd2 = "su -m "+currentUser+" -c \""+cmd2+"\""; //add command to run as user 
    227227  QString cmd3 = "chmod 755 " + mntpoint; //to set full user/root access 
    228   QString cmd4 = "chown "+currentUser+":"+currentUser+" "+mntpoint; //make the current user the owner 
     228  //QString cmd4 = "chown "+currentUser+":"+currentUser+" "+mntpoint; //make the current user the owner 
    229229  qDebug() << "Mounting device" << device << "on" << mntpoint << "("<<filesystem<<")"; 
    230230  if(DEBUG_MODE){ qDebug() << " - command:" << cmd2; } 
     
    236236  if( output.join(" ").simplified().isEmpty() ){ 
    237237    //directory created, run the next commands 
    238     system(cmd4.toUtf8()); //set directory permissions before mounting device 
    239     system(cmd3.toUtf8()); //set directory ownership to the user 
     238    //system(cmd4.toUtf8()); //set directory ownershipt before mounting device 
     239    system(cmd3.toUtf8()); //set directory permissions 
    240240    output = pcbsd::Utils::runShellCommand(cmd2); 
    241241    if( output.join(" ").simplified().isEmpty() ){ 
Note: See TracChangeset for help on using the changeset viewer.