[8467] in Info-AFS_Redistribution

home help back first fref pref prev next nref lref last post

RE: Can one find a mount point just knowing the volume name?

daemon@ATHENA.MIT.EDU (Brandon S. Allbery KF8NH)
Thu Feb 8 13:11:33 2001

Date: Thu, 08 Feb 2001 13:05:16 -0500
From: "Brandon S. Allbery KF8NH" <allbery@ece.cmu.edu>
To: "Neulinger, Nathan R." <nneul@umr.edu>,
        "'Stephen Joyce'" <stephen@physics.unc.edu>
Cc: "'Morris Strongson'" <mms@bnl.gov>, info-afs@transarc.com
Message-Id: <67770000.981655516@pyanfar.ece.cmu.edu>
In-Reply-To: <F349BC4F5799D411ACE100D0B706B3BB34259F@umr-mail03.cc.umr.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Thursday, February 08, 2001 11:43:27 -0600, "Neulinger, Nathan R." 
<nneul@umr.edu> wrote:
+-----
| >         $vol = `fs lsmount $name`;
|
| I hope you don't plan on running that script with a user that has any
| privileges as you've got a gaping security hole right there.
+--->8

Of late I've become quite a fan of quotemeta for this purpose:

	$vol = `/usr/afsws/bin/fs lsm \Q$name`;

It's overkill but it works.

-- 
brandon s. allbery     [os/2][linux][solaris][japh]   allbery@kf8nh.apk.net
system administrator        [WAY too many hats]         allbery@ece.cmu.edu
electrical and computer engineering                                   KF8NH
carnegie mellon university     ["better check the oblivious first" -ke6sls]


home help back first fref pref prev next nref lref last post