[OpenAFS-devel] Re: [grand.central.org #127356] solaris 10: chdir("/") after chroot(path) returns ENOENT

Tony D'Amato tony@lions.odu.edu
Wed, 09 Jun 2010 12:34:44 -0400


-------- Original Message --------
Subject: Re: [grand.central.org #127356] solaris 10: chdir("/") after 
chroot(path) returns ENOENT
From: Tony D'Amato <tdamato@odu.edu>
To: openafs-bugs@openafs.org <openafs-bugs@openafs.org>
Date: 06/08/2010 03:16 PM

> -------- Original Message --------
> Subject: [grand.central.org #127356] solaris 10: chdir("/") after
> chroot(path) returns ENOENT
> From: Andrew Deason via RT <openafs-bugs@openafs.org>
> To: D'Amato, Tony <tdamato@odu.edu>
> Date: 06/08/2010 02:15 PM
>
>>
>> <URL: http://rt.central.org/rt/Ticket/Display.html?id=127356>
>>
>> Can you try this patch:
>> <http://git.openafs.org/?
>> p=openafs.git;a=commitdiff_plain;h=8d18d4773a256b5bb567752e7f923b7713107cb0>
>>
>>
>> and let us know if it fixes the problem? Although that patch is for 1.5,
>> it will apply to 1.4.12 (with a little fuzz) and it looks like it will
>> work just as fine there.
>
> Thanks for the quick patch!
>
> Good news - I don't get the ENOENT anymore:
>
> 1360: chdir("/afs/PATH/ftp") = 0
> 1360: chroot("/afs/PATH/ftp") = 0
> 1360: chdir("/pub") = 0
> 1360: chdir("/") = 0
>
> I'm compiling for Solaris 10 SPARC now, so I'll update the code on the
> test FTP server and do some testing and let you know how it goes...

Second attempt at a reply... the first one musta gotten lost...

I brought up the FTP server with the updated client, and I'm now 
successful with 'cd /'.

Thanks again for the quick fix!! I can now get rid of that Solaris 8 
server *grin*
-- 
Tony D'Amato, SCSA
Senior UNIX Systems Administrator
Server Support Group
Office of Computing and Communications Services
Old Dominion University