From b17c7369286022a7ef5d16bce31a33932b7c528e Mon Sep 17 00:00:00 2001 From: Jim Salter Date: Tue, 18 Nov 2014 09:49:24 -0500 Subject: [PATCH] added check to make sure /var/cache/sanoidsnapshots.txt is writeable --- sanoid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanoid b/sanoid index 157270a..cdd75f3 100755 --- a/sanoid +++ b/sanoid @@ -464,7 +464,7 @@ sub getsnaps { @rawsnaps = ; close FH; - open FH, "> $cache"; + open FH, "> $cache" or die 'Could not write to $cache!\n'; print FH @rawsnaps; close FH; removelock('sanoid_cacheupdate');