This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients loewis, pitrou, rossburton
Date 2008-08-17.22:19:37
SpamBayes Score 0.017647732
Marked as misclassified No
Message-id <1219011579.12.0.00845112030712.issue2466@psf.upfronthosting.co.za>
In-reply-to
Content
Another problem of using os.path.dirname is that for /A/B, it will
return /A, and if /A is itself a symlink to a mount point itself, /A and
/A/B will have different st_dev values... which will be wrongly
interpreted as meaning that /A/B is a mount point.

So here is a possible course of action for ismount:
1- first test if the arg is a symlink and if so, return False (as it
already does today)
2- then use os.path.realname(os.path.dirname(arg)) instead of joining
with ".."
History
Date User Action Args
2008-08-17 22:19:39pitrousetrecipients: + pitrou, loewis, rossburton
2008-08-17 22:19:39pitrousetmessageid: <1219011579.12.0.00845112030712.issue2466@psf.upfronthosting.co.za>
2008-08-17 22:19:38pitroulinkissue2466 messages
2008-08-17 22:19:37pitroucreate