aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_database_test_case.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-03 15:20:30 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-03 15:20:30 +0200
commit801a1f9ab9941e6d68f27591c55f26d02cceb90b (patch)
tree8bbc05b32aa0c2530b3184b17379d3eeae8e934a /tests/test_framework/phpbb_database_test_case.php
parentc2fbaf3af2aef5311952c653a3844550b06d53ad (diff)
parent31e1d7be8dc8aaac9aa6808777745b7e712bea52 (diff)
downloadforums-801a1f9ab9941e6d68f27591c55f26d02cceb90b.tar
forums-801a1f9ab9941e6d68f27591c55f26d02cceb90b.tar.gz
forums-801a1f9ab9941e6d68f27591c55f26d02cceb90b.tar.bz2
forums-801a1f9ab9941e6d68f27591c55f26d02cceb90b.tar.xz
forums-801a1f9ab9941e6d68f27591c55f26d02cceb90b.zip
Merge remote-tracking branch 'Elsensee/ticket/12341' into develop-olympus
* Elsensee/ticket/12341: [ticket/12341] Add tests for get_username_string()
Diffstat (limited to 'tests/test_framework/phpbb_database_test_case.php')
0 files changed, 0 insertions, 0 deletions
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
package fs::mount_point; # $Id: mount_point.pm 269270 2010-05-24 09:55:20Z pterjan $

use diagnostics;
use strict;

use common;
use any;
use fs::type;

sub guess_mount_point {
    my ($part, $prefix, $user) = @_;

    my %l = (
	     '/'     => 'etc/fstab',
	     '/boot' => 'vmlinuz',
	     '/boot' => 'vmlinux',
	     '/boot' => 'uImage',
	     '/tmp'  => '.X11-unix',
	     '/usr'  => 'src',
	     '/var'  => 'spool',
	    );

    my $handle = any::inspect($part, $prefix) or return;
    my $d = $handle->{dir};
    my $mnt = find { -e "$d/$l{$_}" } keys %l;