Name
ap_chdir_file — change to the directory containing file
Synopsis
void ap_chdir_file(const char *file)
Performs a chdir()
to the directory containing
file
. This is done by finding the last slash in
the file and changing to the directory preceding it. If there are no
slashes in the file, it attempts a chdir
to the
whole of file
. It does not check that the
directory is valid, nor that the chdir
succeeds.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.