Searched refs:real_path (Results 1 – 2 of 2) sorted by relevance
155 char real_path[PATH_MAX]; in path_in_path() local156 if (realpath(path, real_path) == NULL) return false; in path_in_path()162 if (strncmp(real_path, real_in_path, real_in_path_len) != 0) { in path_in_path()166 return strlen(real_path) > real_in_path_len && in path_in_path()167 real_path[real_in_path_len] == '/'; in path_in_path()
529 char real_path[PATH_MAX] = {0}; in get_scsi_node_from_bootdevice() local538 if (readlink(bootdev_path, real_path, sizeof(real_path) - 1) < 0) { in get_scsi_node_from_bootdevice()544 if(strlen(real_path) < PATH_TRUNCATE_LOC + 1){ in get_scsi_node_from_bootdevice()546 real_path); in get_scsi_node_from_bootdevice()551 real_path[PATH_TRUNCATE_LOC] = '\0'; in get_scsi_node_from_bootdevice()552 if(strlen(real_path) < LUN_NAME_START_LOC + 1){ in get_scsi_node_from_bootdevice()554 real_path); in get_scsi_node_from_bootdevice()562 &real_path[LUN_NAME_START_LOC]); in get_scsi_node_from_bootdevice()982 char real_path[PATH_MAX] = {0}; in prepare_boot_update() local1014 if (readlink(buf, real_path, sizeof(real_path) - 1) < 0) in prepare_boot_update()[all …]