diff options
author | Simon Munton <simon-hal@munton.demon.co.uk> | 2009-05-24 18:01:51 +0200 |
---|---|---|
committer | Danny Kukawka <danny.kukawka@web.de> | 2009-05-24 18:01:51 +0200 |
commit | e4ac5deba9287ea6b66b7b9c1f4c4d2ee1cc69b4 (patch) | |
tree | fd9f3c3c78569ad067cd276820c52bd8ad425aca /tools/hal-storage-mount.c | |
parent | b35bf1fbfc000749010a27f3f35a95ddf6bb0b07 (diff) |
fixed segfault in hal-storage-mount
Fixed segfault in hal-storage-mount and don't lose fstype in
probe-volume.
Diffstat (limited to 'tools/hal-storage-mount.c')
-rw-r--r-- | tools/hal-storage-mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/hal-storage-mount.c b/tools/hal-storage-mount.c index e48b4b9e..78e01603 100644 --- a/tools/hal-storage-mount.c +++ b/tools/hal-storage-mount.c @@ -786,7 +786,8 @@ handle_mount (LibHalContext *hal_ctx, /* don't consider uid= on vfat, iso9660, hfs and udf change-uid for the purpose of policy * (since these doesn't contain uid/gid bits) */ - if (strcmp (libhal_volume_get_fstype (volume), "vfat") != 0 && + if (libhal_volume_get_fstype (volume) != NULL && + strcmp (libhal_volume_get_fstype (volume), "vfat") != 0 && strcmp (libhal_volume_get_fstype (volume), "ntfs") != 0 && strcmp (libhal_volume_get_fstype (volume), "ntfs-3g") != 0 && strcmp (libhal_volume_get_fstype (volume), "iso9660") != 0 && |