From e6368a716179785791f340e66b1c503865271021 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 22 Dec 2014 20:32:58 +0000 Subject: [PATCH 1/1] 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. --- rfreezefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.11.0