Join GitHub today
stat results are faked incorrectly #183
I am working on reproducible builds for openSUSE and there I would like to use libfaketime to make software behave exactly as if date+time were
e.g. I would like to use
But one problem with stat is visible when you compare
cmd='echo $SECONDS;touch /tmp/x ; stat /tmp/x ; echo $SECONDS; sleep 1 ; stat /tmp/x ; echo $SECONDS;echo $SECONDS' bash -c "$cmd" faketime -f '+0y i1' bash -c "$cmd"
With faketime, the stat results are shifting, when nothing touched the file, which can confuse programs like make.
Yes, I can reproduce that problem.
Could you please try
produces the desired output here, and using