Menu

circumvent execute access rights on temp dir

2007-12-17
2012-09-26
  • White-Gandalf

    White-Gandalf - 2007-12-17

    Dev-C++ 4.9.9.2
    Windows XP/SP2
    example program not applicable (an empty c file suffices)

    Question:

    Has anybody an idea of how to configure the path for temporary batch files in Dev-C++?


    Where it comes from:

    The Dev-C++ - IDE in the default configuration needs execute access rights on the temp directory to create and execute a batch file for the invocation of make.
    I am dedicated to stop the necessity of setting execute access rights on the global temp directory for the user, because this violates one layer of user protection against malware or respectively hinders using the internet while programming.


    Background:

    Well: Since about 15 years, Linux as well as Windows NT deliver the possibility to configure access rights in a way that users MAY protect themselfs against an exponential growing mass of malware (as long as a minimum requirement of IQ in the area of suicide-prevention for computer users is met).

    This especially includes a XOR between normal user's execute access and normal user's write access.

    Microsoft has created a whole OS release around nothing else useful than exactly this one matter.


    There SHOULD be a possibility to circumvent this violation of personal protection act.
    It would suffice to configure a special temp directory (as it is possible with the asbach-uralt Microsoft MSVC 4 IDE) for those temporary files - like it is for the output exe file of the make process.

    My attempts to locate such a configuration option via google was not successful within an hour. Thus i ask this question here at sourceforge...


    Compile Log (compiler Test project):

    Compiler: Default compiler
    Building Makefile: "D:\Projekte\Compiler\devcpp\Makefile.win"
    Führt make... aus
    make.exe -f "D:\Projekte\Compiler\devcpp\Makefile.win" all
    gpp.exe main.o -o "Einstieg.exe" -march=athlon -msse

    process_begin: CreateProcess(d:\t\Harry\make3508-1.bat, d:\t\Harry\make3508-1.bat, ...) failed.
    make (e=5): Zugriff verweigert

    make.exe: *** [Einstieg.exe] Error 5

    Ausführung beendet

     
    • White-Gandalf

      White-Gandalf - 2007-12-18

      Solution by Salem (http://www.daniweb.com/forums/member57744.html):

      @echo off
      set TMP=<dev_temp>
      devcpp.exe

       

Log in to post a comment.