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

Bug#955270: hurd: fails to update file mtime



Package: hurd
Version: 1:0.9.git20191228-1
Severity: normal

I first reported this on the mailing list:
https://lists.debian.org/debian-hurd/2020/03/msg00023.html

Now I logged in on the porterbox (exodar.debian.net) to try and
reproduce, and voilà, I can:

tg@exodar:~$ rm a b
tg@exodar:~$ :>a
tg@exodar:~$ sleep 1
tg@exodar:~$ :>b
tg@exodar:~$ stat a b | grep ^Mod
Modify: 2020-03-29 03:54:03.000000000 +0200
Modify: 2020-03-29 03:54:09.000000000 +0200
tg@exodar:~$ sleep 1
tg@exodar:~$ :>a
tg@exodar:~$ stat a b | grep ^Mod
Modify: 2020-03-29 03:54:03.000000000 +0200
Modify: 2020-03-29 03:54:09.000000000 +0200

For comparison, this is how it looks on GNU/Linux:

tglase@tglase-nb:~ $ rm a b
tglase@tglase-nb:~ $ :>a
tglase@tglase-nb:~ $ sleep 1
tglase@tglase-nb:~ $ :>b
tglase@tglase-nb:~ $ stat a b | grep ^Mod
Modify: 2020-03-29 03:58:04.989345171 +0200
Modify: 2020-03-29 03:58:05.993371946 +0200
tglase@tglase-nb:~ $ sleep 1
tglase@tglase-nb:~ $ :>a
tglase@tglase-nb:~ $ stat a b | grep ^Mod
Modify: 2020-03-29 03:58:07.001398828 +0200
Modify: 2020-03-29 03:58:05.993371946 +0200

Sub-second timestamps aside, you’ll notice how the first of the
two stat(1) lines updated. This is the common expectation for the
command true, redirected to a file.

Please reassign to the correct package, should I be mistaken.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.8+git20191117-486-dbg/Hurd-0.9
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages hurd depends on:
ii  hurd-libs0.3   1:0.9.git20191228-1
ii  libblkid1      2.34-0.1
ii  libc0.3        2.29-10
ii  libdaemon0     0.14-7
ii  libgcrypt20    1.8.5-5
ii  liblwip0       2.1.2+dfsg1-6
ii  libncursesw6   6.2-1
ii  libpciaccess0  0.16-1+hurd.1
ii  libtinfo6      6.2-1
ii  libx11-6       2:1.6.9-2
ii  lsb-base       11.1.0
ii  sysv-rc        2.96-2.1
ii  xkb-data       2.29-2

Versions of packages hurd recommends:
ii  bf-utf-source  0.08
ii  netdde         0.0.20150828-8

Versions of packages hurd suggests:
pn  hurd-doc  <none>

-- no debconf information

Reply to: