This commit is contained in:
Omar Polo 2021-05-15 10:04:58 +00:00
parent 0773413c1d
commit 571d20fbb3
1 changed files with 5 additions and 3 deletions

View File

@ -395,9 +395,11 @@ check_for_cgi(struct client *c)
end = strchr(path, '\0');
while (end > path) {
/* go up one level. UNIX paths are simple and POSIX
* dirname, with its ambiguities on if the given path
* is changed or not, gives me headaches. */
/*
* go up one level. UNIX paths are simple and POSIX
* dirname, with its ambiguities on if the given
* pointer is changed or not, gives me headaches.
*/
while (*end != '/')
end--;
*end = '\0';