- if (mdsame && !hashsame) {
- /* install */
- return install(conf, &nitem, 3);
- }
- if (!mdsame && !hashsame) {
- /* install */
- return install(conf, &nitem, 3);
+
+ if (!hashsame) {
+ /* doesn't matter on the md */
+ int flags = INS_MD | INS_CLD;
+ if (nitem.ftype == 'l') {
+ flags |= INS_UNLINK;
+ }
+ return install(conf, &nitem, flags);