mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 02:32:47 +00:00
Be a little less fatalistic in case of problems.
Reviewed by: phk Submitted by: wosch
This commit is contained in:
parent
110ce42895
commit
35c40fc2fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20971
@ -6,7 +6,7 @@
|
||||
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
* $Id: ctm_pass3.c,v 1.13 1996/04/29 21:02:32 phk Exp $
|
||||
* $Id: ctm_pass3.c,v 1.14 1996/08/30 10:20:58 phk Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -227,12 +227,13 @@ Pass3(FILE *fd)
|
||||
sp->Key,name,i);
|
||||
WRONG
|
||||
}
|
||||
rename(buf,name);
|
||||
if(strcmp(md5,MD5File(name,md5_1))) {
|
||||
if(strcmp(md5,MD5File(buf,md5_1))) {
|
||||
fprintf(stderr," %s %s Edit failed MD5 check.\n",
|
||||
sp->Key,name);
|
||||
WRONG
|
||||
}
|
||||
if (rename(buf,name) == -1)
|
||||
WRONG
|
||||
if (settime(name,times)) WRONG
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user