It's propably my system. I recompile the same pike from another system the same way and copy it to the buggy one and now the bug disappeared.
Thanks for the help anyway
/ David
Martin Nilsson (DivX Networks) @ Pike (-) developers forum wrote:
Well, I can't reproduce it.
mkdir("/tmp/toto");
(1) Result: 1
file_stat("/tmp/toto");
(2) Result: Stat(drwxrwxr-x 4096b)
/ Martin Nilsson (DivX Networks)
Previous text:
2004-09-17 12:30: Subject: Re: Bug in FileStat
Marcus Agehall (PacketFront) @ Pike (-) developers forum wrote:
To be frank, that wasn't obvious from your initial post. To solve bugs, it is important to state versions correctly. If you know something is broken in CVS-current but wasn't a month ago, say that instead of inventing versions that doesn't exist.
Yes.
Back to the problem: What does file->stat() result in 7.6 CVS-current?
object file = Stdio.File("/tmp/toto"); file->stat()->size;
(1) Result: 17592186044416
file->stat();
(2) Result: Stat(drwxr-xr-x 17592186044416b)
/ David
/ Brevbäraren