diff options
author | marcus <marcus@FreeBSD.org> | 2008-05-21 01:30:52 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2008-05-21 01:30:52 +0800 |
commit | 1c51e2efb93ada720ca6fc4cd7a121d9eeb420d4 (patch) | |
tree | afa91b29ba5ffc47b8b92fd0da270f85798a6c4b /sysutils/hal | |
parent | 4680cae9c50a89e5501d1cb3692e1de9f84c9670 (diff) | |
download | freebsd-ports-gnome-1c51e2efb93ada720ca6fc4cd7a121d9eeb420d4.tar.gz freebsd-ports-gnome-1c51e2efb93ada720ca6fc4cd7a121d9eeb420d4.tar.zst freebsd-ports-gnome-1c51e2efb93ada720ca6fc4cd7a121d9eeb420d4.zip |
Fix patching when FIXED_MOUNTPOINTS is defined.
Reported by: many
Diffstat (limited to 'sysutils/hal')
-rw-r--r-- | sysutils/hal/files/extra-patch-tools_hal-storage-mount.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sysutils/hal/files/extra-patch-tools_hal-storage-mount.c b/sysutils/hal/files/extra-patch-tools_hal-storage-mount.c index 82a7fb6070e0..f505709e1c50 100644 --- a/sysutils/hal/files/extra-patch-tools_hal-storage-mount.c +++ b/sysutils/hal/files/extra-patch-tools_hal-storage-mount.c @@ -1,16 +1,9 @@ ---- tools/hal-storage-mount.c.orig 2008-01-03 21:10:54.000000000 -0500 -+++ tools/hal-storage-mount.c 2008-01-04 09:29:10.000000000 -0500 -@@ -583,23 +583,11 @@ handle_mount (LibHalContext *hal_ctx, +--- tools/hal-storage-mount.c.orig 2008-05-20 13:24:30.000000000 -0400 ++++ tools/hal-storage-mount.c 2008-05-20 13:30:14.000000000 -0400 +@@ -585,17 +585,11 @@ handle_mount (LibHalContext *hal_ctx, explicit_mount_point_given = FALSE; if (strlen (mount_point) == 0) { char *p; -- const char *label; -+ char *basename; - -- if (volume != NULL) -- label = libhal_volume_get_label (volume); -- else -- label = NULL; - - if (label != NULL) { - /* best - use label */ @@ -22,6 +15,8 @@ - /* fallback - use "disk" */ - g_snprintf (mount_point, sizeof (mount_point), "%s", "disk"); - } ++ char *basename; ++ + basename = g_path_get_basename (device); + g_strlcpy (mount_point, basename, sizeof (mount_point)); + g_free (basename); |