-
-
Save stigi/d030f697aaca3f917b4a to your computer and use it in GitHub Desktop.
libgpod.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tools/generic-callout.c b/tools/generic-callout.c | |
index 62bd08c..c6aa98b 100644 | |
--- a/tools/generic-callout.c | |
+++ b/tools/generic-callout.c | |
@@ -601,7 +601,7 @@ static char *mount_ipod (const char *dev_path, const char *fstype) | |
return NULL; | |
} | |
g_assert (tmpname == filename); | |
- result = mount (dev_path, tmpname, fstype, 0, NULL); | |
+ result = mount (dev_path, tmpname, 0, NULL); | |
if (result != 0) { | |
g_debug("failed to mount device %s at %s: %s", | |
dev_path, tmpname, strerror(errno)); | |
@@ -740,7 +740,7 @@ int itdb_callout_set_ipod_properties (ItdbBackend *backend, const char *dev, | |
*/ | |
mounted_ipod_set_properties (backend, ipod_mountpoint); | |
- umount (ipod_mountpoint); | |
+ unmount (ipod_mountpoint, 0); | |
g_rmdir (ipod_mountpoint); | |
g_free (ipod_mountpoint); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment