Date:2013-12-05 23:23:50 (7 months 17 days ago)
Author:Paul Cercueil
Commit:31ad27f2bd176cb1816f43f54f57f64320cd400f
Message:Do not try to change the permissions of the executables

Files: src/linkapp.cpp (1 diff)

Change Details

src/linkapp.cpp
606606    //check if we have to quit
607607    string command = cmdclean(exec);
608608
609    // Check to see if permissions are desirable
610    struct stat fstat;
611    if( stat( command.c_str(), &fstat ) == 0 ) {
612        struct stat newstat = fstat;
613        if( S_IRUSR != ( fstat.st_mode & S_IRUSR ) )
614            newstat.st_mode |= S_IRUSR;
615        if( S_IXUSR != ( fstat.st_mode & S_IXUSR ) )
616            newstat.st_mode |= S_IXUSR;
617        if( fstat.st_mode != newstat.st_mode )
618            chmod( command.c_str(), newstat.st_mode );
619    } // else, well.. we are no worse off :)
620
621609    if (!params.empty()) command += " " + params;
622610#if defined(PLATFORM_A320) || defined(PLATFORM_GCW0)
623611    if (gmenu2x->confInt["outputLogs"] && !consoleApp)

Archive Download the corresponding diff file



interactive