[gobolinux-devel] Fix at SignProgram

Jonas Karlsson jonka750 at student.liu.se
Sat Oct 21 21:14:17 UTC 2006


On Sat, 21 Oct 2006 22:11:55 +0200, Hisham Muhammad <hisham.hm at gmail.com>  
wrote:

> On 10/21/06, André Detsch <detsch at gmail.com> wrote:
>> I had to perform the following change at SignProgram to be able to
>> sign a tar.bz2 package. Ok to commit?
>
> I suggest holding it. The bug relates to using SignProgram as root,
> which is not the intended use. Release_Superuser should run before any
> action is taken by the script, so it should be moved further up,
> anyway.

Having looked at the problem and patch again, I think it not has to do  
with running SignProgram as superuser, but the opposite. The tar.bz2 is  
unpacked as superuser, then the script switch to normal user and that user  
may not have access to the newly unpacked directory. The solution is to  
move Release_Superuser, to above the if-then-else, so the tar.bz2 is  
unpacked so that the normal user can access and modify the structure.

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the gobolinux-devel mailing list