Changeset dafb53298e4bc9ec88942a4ecaf61afe595e849a

Show
Ignore:
Timestamp:
08/12/08 00:42:01 (10 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1218501721 +0000
git-parent:

[e45ae4458325223105b7dac3efad0dcc4b31b9ec]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1218501721 +0000
Message:

given our new chdir() we need a full path to the directories. Also, move chdir earlier to make it behave the same despite -D. refs #48

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/Makefile.in

    re1b3535 rdafb532  
    102102 
    103103test-noit.conf: noit.conf.in 
    104         sed -e "s^%sysconfdir%^.^g;" \ 
    105                 -e "s^%modulesdir%^./modules^g;" \ 
    106                 -e "s^%modulesluadir%^./modules-lua^g;" \ 
    107                 -e "s^%PKIPREFIX%^../test/test-^g;" < \ 
     104        sed -e "s^%sysconfdir%^`pwd`^g;" \ 
     105                -e "s^%modulesdir%^`pwd`/modules^g;" \ 
     106                -e "s^%modulesluadir%^`pwd`/modules-lua^g;" \ 
     107                -e "s^%PKIPREFIX%^`pwd`/../test/test-^g;" < \ 
    108108                noit.conf.in > \ 
    109109                test-noit.conf 
  • src/noitd.c

    r6ea1437 rdafb532  
    231231 
    232232  setup_mmap(); 
     233 
     234  chdir("/"); 
    233235  if(foreground) return child_main(); 
    234236 
    235   chdir("/"); 
    236237  if(fork()) exit(0); 
    237238  setsid();