Skip to content

Instantly share code, notes, and snippets.

@stigi
Created January 22, 2012 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stigi/d030f697aaca3f917b4a to your computer and use it in GitHub Desktop.
Save stigi/d030f697aaca3f917b4a to your computer and use it in GitHub Desktop.
libgpod.patch
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