Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
a2d3b470
Commit
a2d3b470
authored
Mar 31, 2003
by
Russell Daniel Christensen
Browse files
Bug Fix: When creating an NTFS image if pagefile.sys or
swapfile.sys does not exist don't abort with an error message anymore.
parent
5d808cca
Changes
1
Hide whitespace changes
Inline
Side-by-side
os/imagezip/imagezip.c
View file @
a2d3b470
...
...
@@ -1233,13 +1233,16 @@ ntfs_skipfile(ntfs_volume *vol, char *filename, u_int32_t offset)
}
File
=
ntfs_inode_lookup_by_name
(
ni_root
,
ufilename
,
ulen
);
if
(
IS_ERR_MREF
(
File
))
{
perror
(
"ntfs_inode_lookup_by_name failed"
);
exit
(
1
);
if
(
debug
>
1
)
{
fprintf
(
stderr
,
"%s does not exist so there is no need "
"to skip the file.
\n
"
,
filename
);
}
return
;
}
free
(
ufilename
);
ufilename
=
NULL
;
if
(
debug
)
fprintf
(
stderr
,
"vol->nr_mft_records==%lld
\n
"
,
vol
->
nr_mft_records
);
if
(
debug
>
1
)
fprintf
(
stderr
,
"vol->nr_mft_records==%lld
\n
"
,
vol
->
nr_mft_records
);
/*Goal: Skip the file*/
if
(
!
(
ni
=
ntfs_inode_open
(
vol
,
File
)))
{
perror
(
"calling ntfs_inode_open (0)"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment