]> Dogcows Code - chaz/tar/commitdiff
(new_volume): Stop if the script exits with an error.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Aug 2001 14:14:17 +0000 (14:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Aug 2001 14:14:17 +0000 (14:14 +0000)
src/buffer.c

index 5ee323fc67bffc91fe1e8441283574756c242a3b..e531061d7036ee48e35f674d15fb9e8fdbf69c06 100644 (file)
@@ -1,5 +1,8 @@
 /* Buffer management for tar.
-   Copyright 1988,92,93,94,96,97,99,2000, 2001 Free Software Foundation, Inc.
+
+   Copyright 1988, 1992, 1993, 1994, 1996, 1997, 1999, 2000, 2001 Free
+   Software Foundation, Inc.
+
    Written by John Gilmore, on 1985-08-25.
 
    This program is free software; you can redistribute it and/or modify it
@@ -1442,7 +1445,8 @@ new_volume (enum access_mode access)
        {
          if (volno_file_option)
            closeout_volume_number ();
-         system (info_script_option);
+         if (system (info_script_option) != 0)
+           FATAL_ERROR ((0, 0, _("`%s' command failed"), info_script_option));
        }
       else
        while (1)
This page took 0.026376 seconds and 4 git commands to generate.