Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

superroot fix

0 views
Skip to first unread message

Mike Shaddock

unread,
Mar 14, 1989, 11:03:50 AM3/14/89
to
There are several commercial and research products which are now using
the "superroot" concept of extending the current Unix directory
structure across a network. The superroot is a directory above /
which contains entries for other systems on the network, and is
similar to // on Apollo systems. FREEDOMNET, TRFS, the NewCastle
Connection, and serveral other products all use the superroot.
Unfortunately the pathname canonicalization code in fileio.c breaks on
superrooted systems. The following is a patch for fileio.c to fix
this problem.
==================== cut here ====================
*** /tmp/,RCSt1013124 Mon Mar 14 13:20:02 1988
--- /tmp/,RCSt2013124 Mon Mar 14 13:20:04 1988
***************
*** 705,710 ****
--- 705,712 ----
(p[2] == '/' || p[2] == 0))
p += 2;
else if (!strncmp (p, "/..", 3)
+ /* /.. at start of filename is meaningful on superroot systems */
+ && o != target
&& (p[3] == '/' || p[3] == 0))
{
while (o != target && *--o != '/')
==================== cut here too ====================
0 new messages