Your message dated Sun, 06 Mar 2016 00:27:20 +0000
with message-id <[email protected]>
and subject line Bug#815833: fixed in fake-hwclock 0.10
has caused the Debian Bug report #815833,
regarding Fake-hwclock: consider mtime of root (/) if no saved file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
815833: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815833
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fake-hwclock
Version: 0.9

Upon first use of fake-hwclock, if the device does not have a
battery-backed clock (and has not saved fake-hwclock.data yet), the clock
will typically start at Jan 1, 1970 UTC.  This has the following
repercussions:
- Before manually adjusting the time, it will be behind other files on the
system
- Manual adjustment of the clock via a UI with a mouse will require several
clicks to increment the year from 1970 to the current
- If the user does not adjust the time, website certificates will be
rejected as not yet valid

While a fake clock is never perfect, we can get closer to reality by keying
off of the modification time of a file or directory, so that on first boot
the clock will effectively be set to a time that is no earlier than the
time at which the file system was built.  Using the root directory (/)
seems safest as it is a directory that can be assumed to always exist.

Below is a proposed change to the "load" case of the fake-hwclock script:

    load)
        if [ -e $FILE ] ; then
            SAVED="$(cat $FILE)"
            SAVED_SEC=$(date -u -d "$SAVED" '+%s')
        else
            echo "Unable to read saved clock information: $FILE does not
exist"
            echo "Using modification time of root directory (/) as saved
time"
            SAVED_SEC=$(stat -c %Y /)
            SAVED=$(date -u -d "@$SAVED_SEC" '+%Y-%m-%d %H:%M:%S')
        fi
        NOW_SEC=$(date -u '+%s')
        if $FORCE || [ $NOW_SEC -le $SAVED_SEC ] ; then
            date -u -s "$SAVED"
        else
            echo "Current system time: $(date -u '+%Y-%m-%d %H:%M:%S')"
            echo "fake-hwclock saved clock information is in the past:
$SAVED"
            echo "To set system time to this saved clock anyway, use
\"force\""
        fi
        ;;


-- 
............................................................................

*Roddy Shuler*  |  +1.585.530.7960  |  Endless

--- End Message ---
--- Begin Message ---
Source: fake-hwclock
Source-Version: 0.10

We believe that the bug you reported is fixed in the latest version of
fake-hwclock, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve McIntyre <[email protected]> (supplier of updated fake-hwclock package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 05 Mar 2016 23:34:59 +0000
Source: fake-hwclock
Binary: fake-hwclock
Architecture: source all
Version: 0.10
Distribution: unstable
Urgency: medium
Maintainer: Steve McIntyre <[email protected]>
Changed-By: Steve McIntyre <[email protected]>
Description:
 fake-hwclock - Save/restore system clock on machines without working RTC 
hardwar
Closes: 815833
Changes:
 fake-hwclock (0.10) unstable; urgency=medium
 .
   * Add a save call to the postinst, to make sure that we save working
     time ASAP. Closes: #815833
Checksums-Sha1:
 0ce8528535d4ac025ee5a1e10972ba8468f4f543 1533 fake-hwclock_0.10.dsc
 79a44e60d040e4e29cb3429af57d6caf4e17f62a 12100 fake-hwclock_0.10.tar.gz
 b3035e409790cb60882bc4d7a6b9421ba88d2215 6710 fake-hwclock_0.10_all.deb
Checksums-Sha256:
 a28b84753acc52672c21f6180ad3d6a7d57650bc39f1cbab6ee56af0b65f0864 1533 
fake-hwclock_0.10.dsc
 371ec1be46fd68fbc0fc00611cd4a16bbd5baddf05b4ebcc762dfb5fe7e9c906 12100 
fake-hwclock_0.10.tar.gz
 34694cecdce92d57c94eb8dbef31f48bfc1913491c376e0674028348b303d54c 6710 
fake-hwclock_0.10_all.deb
Files:
 187d43ffbf133f9139931c09a9d990f5 1533 admin extra fake-hwclock_0.10.dsc
 76252cce503c51a223f83c432777ba2c 12100 admin extra fake-hwclock_0.10.tar.gz
 6b04b62cac28e686916bddac949901dd 6710 admin extra fake-hwclock_0.10_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJW23G9AAoJEFh5eVc0QmhODD0P/iHN+IN4tc5R2MZ9atIf5lEP
IWkSg9FlRHuNU1zcdKe2+h4TTj0ElsQ8Ves5RwBS9aQINz/nxNXHN26yfOvFZqsM
bBd54EPwBYPi8v5FZL7p9dJuuO9iGfSP5IDhvT6xY5DvD2GJJDFONXvvwNkiqB+E
4yB+ZxUVylrXxcAXLJ8934t0nlv3YvY81H4bw5IcaS9WtUBl9m9R98sjWMncwnyV
9ZV6FNLpjNK5vB2T5fL5L7eYi7YHrZq5IK2sydBHvZp1+KIVnNvo3Ns5VmD/dRPr
UEzBu7Gug2zb4jJPQe2NXNkG9Tk7tOt46mh+ydni9xdkFYg0AlEBeq2ZMfbvy9tS
+pL+Z5Y4kePyvMQSx/ixAZaJnS27YlAFzAscZyJpPnHcN+CIsqPOv2/4VgbGUmc4
5hbzIFtEx3/Algk7gxrrsV4bNRTMOGOrg8hDT6QYNucXVXnM0zNvGbYmEGITBPsD
p6OVe19c4R6wx9z1bT/E8680S+Q+sLa1X8/rbLBfSrOHiRPpUM9BzlnPd+IupNvG
XIERSTsHUt18Bkc1CSPHeSBlCbT0mivfezzXo4KmWjCyLcMUlp83GBxOT4BWG9Pl
2MYA1cN8Y+imeVfiOGTvCwAU49Wu/02dg/xP4K64FQvdsBaT2smXj5EMduFkhrFV
+O0sVXpyayiniQ+Ri1uj
=6bI9
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to