Use mv -f. Otherwise if you accidently build as root, and then as a user,

it keeps asking you if you want to overwrite it or not.

Submitted by:	peter
This commit is contained in:
obrien 2002-08-20 03:06:30 +00:00
parent 7cd0f94f3b
commit c5cfcb15b3

View File

@ -474,9 +474,9 @@ for (file_i = 0; file_i < num_files; file_i++) {
}
else {
if (opt_c)
system_check("mv " ctmpfilename " " cfilename);
system_check("mv -f " ctmpfilename " " cfilename);
if (opt_h)
system_check("mv " htmpfilename " " hfilename);
system_check("mv -f " htmpfilename " " hfilename);
}
}