|
|
/* not: [no active file] or no path */ | /* not: [no active file] or no path */ |
memcpy(fileinfo->fullpath, exec_fname, exec_fname_length); | memcpy(fileinfo->fullpath, exec_fname, exec_fname_length); |
fileinfo->fullpath[exec_fname_length] = DEFAULT_SLASH; | fileinfo->fullpath[exec_fname_length] = DEFAULT_SLASH; |
strcpy(fileinfo->fullpath +exec_fname_length +1, filename); |
strlcpy(fileinfo->fullpath +exec_fname_length +1, filename,sizeof(fileinfo->fullpath)-exec_fname_length-1); |
/* apc_wprint("filename: %s, exec_fname: %s, fileinfo->fullpath: %s", filename, exec_fname, fileinfo->fullpath); */ | /* apc_wprint("filename: %s, exec_fname: %s, fileinfo->fullpath: %s", filename, exec_fname, fileinfo->fullpath); */ |
if (apc_stat(fileinfo->fullpath, &fileinfo->st_buf) == 0) { | if (apc_stat(fileinfo->fullpath, &fileinfo->st_buf) == 0) { |
found = 1; | found = 1; |