[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: Atari machines running Debian?



> BTW, I have straced "tar -C /usr/bin -c ." and found out that
> 'getdents64()' returns those corrupted filenames:

You mean, you pipe the output of this to /dev/null and wait for error
messages? How many repetitions? Doesn't throw an error right away for
me... not even with your kernel image used.

> chdir("/usr/bin")
> lstat(".")
> open(".") = 3
> open("/proc/self/fd/3/.", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
> fstat(4)
> fcntl(4, F_SETFD, FD_CLOEXEC)
> close(3)
> getdents(4, /* 140 entries */, 4096) = 4080
>
> {d_info=72967, d_off=5840, d_type=DT_REG, d_reclen=32, d_name="slabt"}
> ^^ that should have been "slabtop" but was truncated to "slabt"
>
> 'ls', OTOH, opens up the "/usr/bin" directly and then getdents returns
> correct "slabtop".

Can't reproduce this; I've upgraded all disk images to testing in the
meantime, though.

	Michael



Reply to: