nsprpub/config/nfspwd.pl
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Tue, 25 Jan 2022 19:04:15 +0000
changeset 605441 94ad3527d1383d99f5a68be6432a8d50b6ed5ad2
parent 93716 d37d4edce6dd592f04afa606deb1ae327c07b4a4
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD da -> d9001caadec33266ec086cfd52b6209551e456af et -> 8cac06d1b0200711a14a70be7e06ab327edc5581 hu -> 3c9109c2213555fd1ae5d4b014d513d993414848 hye -> 2f5589c9acf82d485dffbef85540ab5d05c44d41 nl -> 54e27a8516f94745f766e70b653fb2ae81b4b1d6

#! perl
# 
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

require "fastcwd.pl";

$_ = &fastcwd;
if (m@^/[uh]/@o || s@^/tmp_mnt/@/@o) {
    print("$_\n");
} elsif ((($user, $rest) = m@^/usr/people/(\w+)/(.*)@o)
      && readlink("/u/$user") eq "/usr/people/$user") {
    print("/u/$user/$rest\n");
} else {
    chop($host = `hostname`);
    print("/h/$host$_\n");
}