Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=a85f25f47b9256a9b0e100b785636aaa7658881a
commit a85f25f47b9256a9b0e100b785636aaa7658881a Author: James Buren <[email protected]> Date: Tue Aug 21 15:51:31 2012 -0500 adjust write code diff --git a/DosPartitionTable.cc b/DosPartitionTable.cc index f571353..3dfcf07 100644 --- a/DosPartitionTable.cc +++ b/DosPartitionTable.cc @@ -139,9 +139,7 @@ bool DosPartitionTable::write(const string &path) logfile << "Executing command: " << cmd.str() << endl; - pid = execute(cmd.str()); - - if(pid == -1 || waitpid(pid,&status,0) == -1) + if((pid == execute(cmd.str())) == -1 || waitpid(pid,&status,0) == -1) { logfile << __func__ << ": " << strerror(errno) << endl; return false; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
