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

commit 57152d7f8303fc52a1e6ca8c8099bb93f413821c
Author: James Buren <[email protected]>
Date:   Fri Jun 29 11:32:13 2012 -0500

fw32: when umounting, ignore errors due to non-existant mount point or 
non-existant path.

diff --git a/fw32.c b/fw32.c
index 41892d4..51080af 100644
--- a/fw32.c
+++ b/fw32.c
@@ -272,7 +272,7 @@ ismounted(const char *path)

char *ptr = strstr(s,"\\040");

-    if(ptr);
+    if(ptr)
*ptr = 0;

if(!strcmp(s,path))
@@ -364,7 +364,7 @@ umount_directory(FW32_DIR *path)
{
assert(path);

-  if(umount2(path->dir,UMOUNT_NOFOLLOW) && errno != EINVAL)
+  if(umount2(path->dir,UMOUNT_NOFOLLOW) && (errno != EINVAL || errno != 
ENOENT))
error("Failed to umount directory: %s: %s\n",path->dir,strerror(errno));
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to