Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=b48ceb17af04424c97b9a85f78c4f0e76a41856f

commit b48ceb17af04424c97b9a85f78c4f0e76a41856f
Author: James Buren <[email protected]>
Date:   Wed Oct 17 15:09:19 2012 -0500

do a no-op if our internal structure was not modified

diff --git a/src/block.c b/src/block.c
index 8b2b06c..0db8e53 100644
--- a/src/block.c
+++ b/src/block.c
@@ -835,6 +835,9 @@ extern bool disk_flush(struct disk *disk)
return false;
}

+  if(!disk->modified)
+    return true;
+
if(disk->type == DISKTYPE_DOS)
{
snprintf(command,_POSIX_ARG_MAX,"set -e;echo -n -e '");
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to