get_num_path_components(dentry->full_path_utf8) - 1;
num_output_dir_path_components =
get_num_path_components(output_dir);
get_num_path_components(dentry->full_path_utf8) - 1;
num_output_dir_path_components =
get_num_path_components(output_dir);
if (!((extract_flags & WIMLIB_EXTRACT_FLAG_MULTI_IMAGE)
&& (extract_flags & (WIMLIB_EXTRACT_FLAG_SYMLINK |
if (!((extract_flags & WIMLIB_EXTRACT_FLAG_MULTI_IMAGE)
&& (extract_flags & (WIMLIB_EXTRACT_FLAG_SYMLINK |
- ssize_t ret = inode_readlink(dentry->inode, target, sizeof(target), w);
+ ssize_t ret = inode_readlink(dentry->d_inode, target, sizeof(target), w);
*
* @dentry: The directory entry for the directory.
* @output_path: The path to which the directory is to be extracted to.
*
* @dentry: The directory entry for the directory.
* @output_path: The path to which the directory is to be extracted to.
* Extracts a file, directory, or symbolic link from the WIM archive. For use
* in for_dentry_in_tree().
*/
* Extracts a file, directory, or symbolic link from the WIM archive. For use
* in for_dentry_in_tree().
*/
- wim_timestamp_to_timeval(dentry->inode->last_access_time, &tv[0]);
- wim_timestamp_to_timeval(dentry->inode->last_write_time, &tv[1]);
+ wim_timestamp_to_timeval(dentry->d_inode->last_access_time, &tv[0]);
+ wim_timestamp_to_timeval(dentry->d_inode->last_write_time, &tv[1]);
if (lutimes(output_path, tv) != 0) {
WARNING("Failed to set timestamp on file `%s': %s",
output_path, strerror(errno));
if (lutimes(output_path, tv) != 0) {
WARNING("Failed to set timestamp on file `%s': %s",
output_path, strerror(errno));
memcpy(buf, output_dir, output_path_len);
buf[output_path_len] = '/';
for (image = 1; image <= w->hdr.image_count; image++) {
memcpy(buf, output_dir, output_path_len);
buf[output_path_len] = '/';
for (image = 1; image <= w->hdr.image_count; image++) {
image_name = wimlib_get_image_name(w, image);
if (*image_name) {
strcpy(buf + output_path_len + 1, image_name);
image_name = wimlib_get_image_name(w, image);
if (*image_name) {
strcpy(buf + output_path_len + 1, image_name);