Snapper SEGFAULTs if you try to create config for an unsupported filesystem:

e.g.: snapper -c foo-fs-config create-config -f foo-fs /mnt/mounted-foo-fs

---
 snapper/Filesystem.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/snapper/Filesystem.cc b/snapper/Filesystem.cc
index 6d0507a..1dac168 100644
--- a/snapper/Filesystem.cc
+++ b/snapper/Filesystem.cc
@@ -70,7 +70,7 @@ namespace snapper
 
        static const func_t funcs[] = { &Btrfs::create, &Ext4::create, 
&Lvm::create, NULL };
 
-       for (const func_t* func = funcs; func != NULL; ++func)
+       for (const func_t* func = funcs; *func != NULL; ++func)
        {
            Filesystem* fs = (*func)(fstype, subvolume);
            if (fs)
-- 
1.7.8.6

-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to