fix a nasty update bug

This commit is contained in:
espie 2016-05-26 00:08:02 +00:00
parent 3df6e7d336
commit 7640ab447f

View File

@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
# $OpenBSD: proot,v 1.45 2016/05/23 13:36:25 espie Exp $
# $OpenBSD: proot,v 1.46 2016/05/26 00:08:02 espie Exp $
#
# Copyright (c) 2016 Marc Espie <espie@openbsd.org>
#
@ -518,6 +518,7 @@ sub simple_copy
my $key = "$dev/$ino";
if (exists $state->{copied}{$key}) {
remove_tree($cpath);
link($state->{copied}{$key}, $cpath);
return;
}