Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fw32.git;a=commitdiff;h=e7dd788fb6af0d2bd77b67298309707e08d3b6b8
commit e7dd788fb6af0d2bd77b67298309707e08d3b6b8 Author: James Buren <[email protected]> Date: Sun Jul 1 02:17:55 2012 -0500 fw32: fix bug where everything failed to get umounted diff --git a/fw32.c b/fw32.c index 7d8f034..20f914c 100644 --- a/fw32.c +++ b/fw32.c @@ -270,7 +270,7 @@ ismounted(const char *path) *e = 0; - char *ptr = strstr(s,"\\040"); + char *ptr = strstr(s,"\\040(deleted)"); if(ptr) *ptr = 0; @@ -414,10 +414,10 @@ umount_all(void) if(!strncmp(s,FW32_ROOT,strlen(FW32_ROOT))) { - char *ptr = strstr(s,"\\040"); + char *ptr = strstr(s,"\\040(deleted)"); if(ptr) *ptr = 0; - if(fwrite(s,1,e-s,out) != e-s || fwrite("\n",1,1,out) != 1 || fflush(out)) + if(fprintf(out,"%s\n",s) < 0 || fflush(out)) error("Failed to write to memory stream.\n"); } } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
