bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] [Patch] tar-1.20 - checkpoint.c


From: Xavier Hienne
Subject: [Bug-tar] [Patch] tar-1.20 - checkpoint.c
Date: Sun, 05 Oct 2008 00:19:11 +0200
User-agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080110)

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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]