- /* Check if this is the magic debugfile */
- if (retvalue == AFP_OK
- && curdir->d_did == htonl(2)
- && vol->v_debugfile
- && strcmp(upath, vol->v_debugfile) == 0) {
- char *path = absupath(vol, curdir, upath);
- char *logstring = malloc(strlen("default log_maxdebug ") + strlen(path) + 1);
- sprintf(logstring, "default log_maxdebug %s", path);
- setuplog(logstring);
- free(logstring);
- }
-