From a8a04956126fad029b2ec0deb90b7a9cbfe30313 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 12 Jan 2019 11:56:53 +0100 Subject: [PATCH] catar/encoder.rs: disable backup of virtual file systems --- src/catar/encoder.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/catar/encoder.rs b/src/catar/encoder.rs index 0161bf16..1cd8bded 100644 --- a/src/catar/encoder.rs +++ b/src/catar/encoder.rs @@ -66,6 +66,10 @@ impl <'a, W: Write> CaTarEncoder<'a, W> { let magic = detect_fs_type(dir_fd)?; + if is_virtual_file_system(magic) { + bail!("backup virtual file systems is disabled!"); + } + me.encode_dir(dir, &stat, magic)?; Ok(())