static int clone_image_info(const struct image_info *old, struct image_info *new)
{
- int ret;
-
new->dir_count = old->dir_count;
new->file_count = old->file_count;
new->total_bytes = old->total_bytes;
struct wim_info *new_wim_info;
struct image_info *image_info;
int ret;
- char *name;
- char *desc;
DEBUG("Copying XML data between WIM files for source image %d.", image);
uint i;
const struct image_info *image_info;
const char *desc;
- time_t ctime;
- time_t mtime;
if (image == WIM_ALL_IMAGES) {
for (i = 1; i <= wim_info->num_images; i++)
print_image_info(wim_info, i);
} else {
+ time_t time;
+ char *p;
+
image_info = &wim_info->images[image - 1];
printf("Index: %"PRIu64"\n",
printf("Hard Link Bytes: %"PRIu64"\n",
image_info->hard_link_bytes);
- ctime = wim_timestamp_to_unix(image_info->creation_time);
- mtime = wim_timestamp_to_unix(image_info->last_modification_time);
+ time = wim_timestamp_to_unix(image_info->creation_time);
+ p = asctime(gmtime(&time));
+ *(strrchr(p, '\n')) = '\0';
+
+ printf("Creation Time: %s UTC\n", p);
+
+ time = wim_timestamp_to_unix(image_info->last_modification_time);
+ p = asctime(gmtime(&time));
+ *(strrchr(p, '\n')) = '\0';
- printf("Creation Time: %s", asctime(localtime(&ctime)));
- printf("Last Modification Time: %s", asctime(localtime(&mtime)));
+ printf("Last Modification Time: %s UTC\n", p);
if (image_info->windows_info_exists)
print_windows_info(&image_info->windows_info);
if (image_info->flags)