From: Mark Wooding Date: Mon, 22 Dec 2014 20:32:58 +0000 (+0000) Subject: rfreezefs.c (partial_cleanup): Don't ignore the argument. X-Git-Tag: 1.0.2.3~2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/rsync-backup/commitdiff_plain/e6368a716179785791f340e66b1c503865271021?hp=-c rfreezefs.c (partial_cleanup): Don't ignore the argument. Previously, the function would always attempt to thaw all of the filesystems, even if they hadn't all been frozen yet. There's only a problem if something actually goes wrong during freezing some filesystem, and this probably isn't too disastrous, assuming that the filesystems in question weren't already frozen (and are now unexpectedly thawed), but it's not desirable. --- e6368a716179785791f340e66b1c503865271021 diff --git a/rfreezefs.c b/rfreezefs.c index 9f915ae..7d05b98 100644 --- a/rfreezefs.c +++ b/rfreezefs.c @@ -252,7 +252,7 @@ static void partial_cleanup(size_t n) int i; int bad = 0; - for (i = 0; i < nfs; i++) { + for (i = 0; i < n; i++) { if (fs[i] == -1) emerg("not really thawing ", fsname[i], EOM); else if (fs[i] != -2) {