Re: strange su behaviour

From: Nick Murtagh (murtaghn@tcd.ie)
Date: Sat Mar 02 2002 - 12:54:46 EST


On Saturday 02 March 2002 09:08, Ville Herva wrote:
> Well, you could try to strace it to see where it lurks when it hangs.

The -r did the trick. Basically there was a bug in pam_xauth where it
was calling ftruncate with an un-initialised off_t length. Hence it
was trying to ftruncate a 34 byte file to > 100 megabytes.

The ftruncate manpage says that the behaviour in this circumstance is
undefined. I will investigate further to see why different kernel
versions are acting differently here.

Thanks for your help.

Nick
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:24 EST