diff options
author | David Zeuthen <davidz@redhat.com> | 2012-02-22 10:34:16 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2012-02-22 10:34:16 -0500 |
commit | ffbee04d8f48ec153dba45b5392882413e3550ca (patch) | |
tree | 331d8efea73716e02adc23bc27cf418ad212bc20 | |
parent | eca90c4899972aa286b3c4e76425ef159676e277 (diff) |
Avoid using $XDG_RUNTIME_DIR/media for now
Needs a bit more thought on the security side.
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r-- | src/udiskslinuxfilesystem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udiskslinuxfilesystem.c b/src/udiskslinuxfilesystem.c index 9b2469a..4852357 100644 --- a/src/udiskslinuxfilesystem.c +++ b/src/udiskslinuxfilesystem.c @@ -652,6 +652,7 @@ calculate_mount_point (UDisksBlock *block, uuid = udisks_block_get_id_uuid (block); } +#if 0 /* $XDG_RUNTIME_DIR/media turned off for now, may have security issues */ /* try mounting in user's $XDG_RUNTIME_DIR/media first - have to create it on demand... */ if (user_name != NULL) { @@ -683,6 +684,7 @@ calculate_mount_point (UDisksBlock *block, } g_free (s); } +#endif /* fall back to mounting in /media */ if (mount_dir == NULL) mount_dir = g_strdup ("/media"); |