summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-10-05 09:09:16 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-10-05 09:09:16 +0000
commit6901594ac45b88e68a19dd7221511ddf9ff44f66 (patch)
treead5a2ef744f66b19efee8099bbfae4e93756f20a
parentc78356fedadbe36aae1e063c69d11636c86d35e6 (diff)
downloadtar-6901594ac45b88e68a19dd7221511ddf9ff44f66.tar.gz
Bugfix.
* src/checkpoint.c (checkpoint_compile_action): Add missing `else'.
-rw-r--r--ChangeLog5
-rw-r--r--src/checkpoint.c2
-rw-r--r--tests/listed01.at2
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c13afff..ec8fefd7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-05 Xavier Hienne <xavier.hienne@free.fr> (tiny change)
+
+ * src/checkpoint.c (checkpoint_compile_action): Add missing
+ `else'.
+
2008-09-24 Sergey Poznyakoff <gray@gnu.org.ua>
* NEWS: Update.
diff --git a/src/checkpoint.c b/src/checkpoint.c
index cde5e590..9f031f7e 100644
--- a/src/checkpoint.c
+++ b/src/checkpoint.c
@@ -80,7 +80,7 @@ checkpoint_compile_action (const char *str)
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);
diff --git a/tests/listed01.at b/tests/listed01.at
index 56584f24..b9fc2e40 100644
--- a/tests/listed01.at
+++ b/tests/listed01.at
@@ -39,7 +39,7 @@ tar --create \
tar tf archive.1 || exit 1
-sleep 1
+sleep 2
genfile --length 10240 --pattern zeros --file directory/file2