Hi all!

1. Save the script that is attached to this message.

2. **As root**, run it in an empty directory.

3. As an under-privileged user, enter this directory and type "./prog".

Result: the program segfaults before printing the "Msg2". My question is - 
why? I should note that running the same program as root does not cause a 
segfault.

I'm using Mandriva 2006 on a P4-2.4GHz system with kernel 2.6.16-rc5.

This code was extracted from the gringotts encrypted notes manager.

Regards,

        Shlomi Fish

---------------------------------------------------------------------
Shlomi Fish      [EMAIL PROTECTED]
Homepage:        http://www.shlomifish.org/

95% of the programmers consider 95% of the code they did not write, in the
bottom 5%.

Attachment: build-as-root.sh
Description: application/shellscript

Reply via email to