Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 14678
Collapse All | Expand All

(-)roots.c.old (-1 / +1 lines)
Lines 121-127 Link Here
121
  fddir = open_read(".");
121
  fddir = open_read(".");
122
  if (fddir == -1) return 0;
122
  if (fddir == -1) return 0;
123
  r = init1();
123
  r = init1();
124
  if (fchdir(fddir) == -1) r = 0;
124
  if (chdir("/") == -1) r = 0; // chdir to chrooted root, otherwise kernel grsec will complain
125
  close(fddir);
125
  close(fddir);
126
  return r;
126
  return r;
127
}
127
}

Return to bug 14678