Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw32.git;a=commitdiff;h=b43c48113a88f034656e1a64b6b91a6a72bdf21c

commit b43c48113a88f034656e1a64b6b91a6a72bdf21c
Author: James Buren <[email protected]>
Date:   Fri Jun 29 06:08:31 2012 -0500

fw32: when umounting, check for \040 in the file path and delete it from it if 
found.

diff --git a/fw32.c b/fw32.c
index 01da463..8ce1983 100644
--- a/fw32.c
+++ b/fw32.c
@@ -408,8 +408,13 @@ umount_all(void)
*e = 0;

if(!strncmp(s,FW32_ROOT,strlen(FW32_ROOT)))
+    {
+      char *ptr = strstr(s,"\\040");
+      if(ptr);
+        *ptr = 0;
if(fwrite(s,1,e-s,out) != e-s || fwrite("\n",1,1,out) != 1 || fflush(out))
error("Failed to write to memory stream.\n");
+    }
}

fclose(in);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to