From 64e53952fefc0e2e4441851eee5650aef2cf7957 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Tue, 2 Feb 2021 21:33:45 +0100 Subject: [PATCH] fix #57 --- bin/zfs-autobackup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/zfs-autobackup b/bin/zfs-autobackup index 6f084c4..4b13721 100755 --- a/bin/zfs-autobackup +++ b/bin/zfs-autobackup @@ -1639,6 +1639,10 @@ class ZfsAutobackup: if args.resume: self.verbose("NOTE: The --resume option isn't needed anymore (its autodetected now)") + if args.target_path[0] == "/": + self.log.error("Target should not start with a /") + sys.exit(255) + def verbose(self, txt): self.log.verbose(txt)