Changeset 359

Show
Ignore:
Timestamp:
03/02/06 17:24:11 (3 years ago)
Author:
common
Message:

[x] Nepenthes.cpp
- prevent crash on startup when running in changeroot without changing process user and/or group id, -> changeroot _after_ we chowned the logfiles

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/nepenthes-core/src/Nepenthes.cpp

    r344 r359  
    557557                } 
    558558        } 
    559  
    560         if ( chRoot != NULL ) 
    561         { 
    562                 if ( changeRoot(chRoot) == false ) 
    563                 { 
    564                         run = false; 
    565                 } 
    566         } 
    567  
    568559 
    569560        // if we drop priviliges, we have to take care of the logfiles user/group permission 
     
    675666#endif 
    676667        } 
     668 
     669 
     670        if ( run == true && chRoot != NULL ) 
     671        { 
     672                if ( changeRoot(chRoot) == false ) 
     673                { 
     674                        run = false; 
     675                } 
     676        } 
     677 
    677678 
    678679        // change process group id