bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fakeroot problem


From: Marcus Brinkmann
Subject: Re: fakeroot problem
Date: Sat, 11 May 2002 14:27:09 +0200
User-agent: Mutt/1.3.28i

On Sat, May 11, 2002 at 05:12:15AM +0200, Marcus Brinkmann wrote:
> This is indeed what happens, here in more detail:

What I describe here is the error in the passive translator case.

I tried this change:
diff -u -p -r1.6 fakeroot.c
--- fakeroot.c  6 May 2002 00:40:14 -0000       1.6
+++ fakeroot.c  11 May 2002 12:24:22 -0000
@@ -160,6 +160,10 @@ netfs_validate_stat (struct node *np, st
   if (np->nn->faked & FAKE_MODE)
     st.st_mode = np->nn_stat.st_mode;

+  /* Fake out our own translator setting on the root node.  */
+  if (np == netfs_root_node)
+    st.st_mode &= ~(S_IPTRANS | S_IATRANS);
+
   np->nn_stat = st;
   return 0;
 }

And it fixes the passive translator case described here.

However, in combinaton with --chroot, I still get ENOTDIR from exec,
so there seems to be another bug.  Not easy to test, as I need to get my
feet in the door before it shuts down because of the error.  I will try
rpctrace next, but if that doesn't show up anything it's time for a
neighbor-hurd and setting a breakpoint in the exec server or so.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org address@hidden
Marcus Brinkmann              GNU    http://www.gnu.org    address@hidden
address@hidden
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]