Patch for Dreamhost

brian_d_foy on 2008-03-05T00:57:00

As threatened earlier, I've written up a patch to fix Cwd.pm in perl so it will build in a Dreamhost account. Now you can upgrade to 5.8.8.

The issue is that Perl's own version of abs_path() didn't know how to deal with a parent directory it didn't have read permissions on. On Dreamhost, you can't read /home. The patch will eventually go into PathTools.


FindBin, etc

davegaramond on 2008-03-05T06:47:03

Thanks for this. I used to be in a somewhat similar situation a few years back (/home's read permission is turned off) and I remember not being able to use FindBin (which uses abs_path() too).

Btw, what's the point of blocking read access to /home. So a hosting user cannot list other users in the box? Can't you get that easily from /etc/{passwd,group} anyway?

Eliminating other's copyright notices...

hummassa on 2008-03-05T16:08:06

is extremely uncool; please, add your copyright notice instead of substituting the original ones... unless you rewrote the whole thing from scratch...

Re:Eliminating other's copyright notices...

schwern on 2008-03-05T17:58:12

is extremely uncool; please, add your copyright notice instead of substituting the original ones... unless you rewrote the whole thing from scratch...
I believe you're referring to this?

- * Copyright (c) 1994
- *    The Regents of the University of California.  All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Jan-Simon Pendry.
+ * Copyright (c) 2003 Constantin S. Svintsoff <kostik@iclub.nsu.ru>
You caught me! I'm not Michael Schwern at all but Constantin S. Svintsoff, Soviet Spy from the Future Past here to steal your capitalist intellectual property!!!

Or maybe that's just the copyright on the latest realpath.c from OpenBSD, which is really all that Cws.xs is with some minor adaptations for XS. OpenBSD did a big rewrite so the copyright changed.

Watch where you're jerking that knee, comrade.