Hello developers,
Please find attached a patch that fixes a bug in tar 1.19 and 1.20 which
makes the dot checkpoint-action not functioning and breaks backwards
compatibility.
# tar --checkpoint=.100
tar: .: unknown checkpoint action
tar: Error is not recoverable: exiting now
# tar --checkpoint-action=dot
tar: dot: unknown checkpoint action
tar: Error is not recoverable: exiting now
Bye
Xavier
diff -Nur tar-1.20.orig/src/checkpoint.c tar-1.20.new/src/checkpoint.c
--- tar-1.20.orig/src/checkpoint.c 2008-01-23 10:19:58.000000000 +0100
+++ tar-1.20.new/src/checkpoint.c 2008-10-04 23:20:43.000000000 +0200
@@ -80,7 +80,7 @@
if (strcmp (str, ".") == 0 || strcmp (str, "dot") == 0)
alloc_action (cop_dot);
- if (strcmp (str, "bell") == 0)
+ else if (strcmp (str, "bell") == 0)
alloc_action (cop_bell);
else if (strcmp (str, "echo") == 0)
alloc_action (cop_echo);