catar/encoder.rs: disable backup of virtual file systems

This commit is contained in:
Dietmar Maurer 2019-01-12 11:56:53 +01:00
parent d7bfac8605
commit a8a0495612
1 changed files with 4 additions and 0 deletions

View File

@ -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(())