]> Dogcows Code - chaz/tar/blobdiff - src/buffer.c
Bugfixes.
[chaz/tar] / src / buffer.c
index 8147def1961246dfdef3f3704432416431c6f932..dfc8456db73940d993f2eb00801e60942748784e 100644 (file)
@@ -1374,7 +1374,7 @@ static bool
 check_label_pattern (const char *label)
 {
   char *string;
-  bool result;
+  bool result = false;
 
   if (fnmatch (volume_label_option, label, 0) == 0)
     return true;
@@ -1841,6 +1841,7 @@ open_archive (enum access_mode wanted_access)
   switch (wanted_access)
     {
     case ACCESS_READ:
+    case ACCESS_UPDATE:
       if (volume_label_option)
         match_volume_label ();
       break;
@@ -1850,9 +1851,6 @@ open_archive (enum access_mode wanted_access)
       if (volume_label_option)
         write_volume_label ();
       break;
-
-    default:
-      break;
     }
   set_volume_start_time ();
 }
This page took 0.026421 seconds and 4 git commands to generate.