Package: faketime Version: 0.9.6-7+b1 Severity: normal Problem: Timestamp to fake not recognized for "faketime "+1" stat foo"
How to reproduce: | $ touch foo | $ stat foo | File: foo | Size: 0 Blocks: 0 IO Block: 4096 regular empty file | Device: 811h/2065d Inode: 10884803 Links: 1 | Access: (0664/-rw-rw-r--) Uid: ( 1000/ osamu) Gid: ( 1000/ osamu) | Access: 2017-09-14 19:47:04.816855261 +0900 | Modify: 2017-09-14 19:47:04.816855261 +0900 | Change: 2017-09-14 19:47:04.816855261 +0900 | Birth: - | $ faketime "+10" stat foo | date: invalid date ‘+10’ | Error: Timestamp to fake not recognized, please re-try with a different timestamp. FYI: libfaketime itself works OK if used with LD_PRELOAD | $ FAKETIME="+10" LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketimeMT.so.1 stat foo | File: foo | Size: 0 Blocks: 0 IO Block: 4096 regular empty file | Device: 811h/2065d Inode: 10884803 Links: 1 | Access: (0664/-rw-rw-r--) Uid: ( 1000/ osamu) Gid: ( 1000/ osamu) | Access: 2017-09-14 19:47:14.816855261 +0900 | Modify: 2017-09-14 19:47:14.816855261 +0900 | Change: 2017-09-14 19:47:14.816855261 +0900 | Birth: - | $ FAKETIME="+10" LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketimeMT.so.1 stat foo | File: foo | Size: 0 Blocks: 0 IO Block: 4096 regular empty file | Device: 811h/2065d Inode: 10884803 Links: 1 | Access: (0664/-rw-rw-r--) Uid: ( 1000/ osamu) Gid: ( 1000/ osamu) | Access: 2017-09-14 19:47:14.816855261 +0900 | Modify: 2017-09-14 19:47:14.816855261 +0900 | Change: 2017-09-14 19:47:14.816855261 +0900 | Birth: - So this is problem with wrapper script. -- System Information: Debian Release: 9.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages faketime depends on: ii libc6 2.24-11+deb9u1 ii libfaketime 0.9.6-7+b1 faketime recommends no packages. faketime suggests no packages. -- no debconf information

