From: Sergey Poznyakoff Date: Tue, 6 Dec 2005 16:31:49 +0000 (+0000) Subject: (new_volume): Use sys_exec_info_script() instead of system(). X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=13d43c302f519a3ab649cb3c735e81098c478d14;hp=a5da71b1421e2f6850d3057aef837e67ded012e3;p=chaz%2Ftar (new_volume): Use sys_exec_info_script() instead of system(). --- diff --git a/src/buffer.c b/src/buffer.c index f8fe2ea..cbbea10 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -904,7 +904,7 @@ new_volume (enum access_mode mode) { if (volno_file_option) closeout_volume_number (); - if (system (info_script_option) != 0) + if (sys_exec_info_script (*archive_name_cursor, global_volno+1)) FATAL_ERROR ((0, 0, _("%s command failed"), quote (info_script_option))); }