mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 14:56:13 +01:00
Correct slight stuff-up in previous patch.
This commit is contained in:
parent
bb0ea411a8
commit
b99df5acb5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54667
@ -63,9 +63,9 @@ main(int argc, char **argv)
|
||||
if (st_fs.st_size != read(fd_fs,buf_fs,st_fs.st_size))
|
||||
{ perror(argv[2]); exit(2); }
|
||||
for(l=0,p=buf_kernel; l < st_kernel.st_size - st_fs.st_size ; l++,p++ )
|
||||
if(*p == 'M' && !strcmp(p,"MD Filesystem goes here"))
|
||||
if(*p == 'M' && !strcmp(p,"MFS Filesystem goes here"))
|
||||
goto found;
|
||||
fprintf(stderr,"MD filesystem signature not found in %s\n",argv[1]);
|
||||
fprintf(stderr,"MFS filesystem signature not found in %s\n",argv[1]);
|
||||
exit(1);
|
||||
found:
|
||||
if (!force)
|
||||
|
@ -63,9 +63,9 @@ main(int argc, char **argv)
|
||||
if (st_fs.st_size != read(fd_fs,buf_fs,st_fs.st_size))
|
||||
{ perror(argv[2]); exit(2); }
|
||||
for(l=0,p=buf_kernel; l < st_kernel.st_size - st_fs.st_size ; l++,p++ )
|
||||
if(*p == 'M' && !strcmp(p,"MD Filesystem goes here"))
|
||||
if(*p == 'M' && !strcmp(p,"MFS Filesystem goes here"))
|
||||
goto found;
|
||||
fprintf(stderr,"MD filesystem signature not found in %s\n",argv[1]);
|
||||
fprintf(stderr,"MFS filesystem signature not found in %s\n",argv[1]);
|
||||
exit(1);
|
||||
found:
|
||||
if (!force)
|
||||
|
Loading…
Reference in New Issue
Block a user