diff options
author | Damien Zammit <damien@zamaudio.com> | 2021-02-02 18:29:43 +1100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-02-02 22:45:55 +0100 |
commit | c1ae388a59b58f7c86412e7bfaee1d07f58e6ecc (patch) | |
tree | b38ce2e24e9151fdd76b5d27c3e62f8d9ce60263 /libnetfs | |
parent | 29ceb15460899bb6cf0d9b8fabb0b88c133f8cd6 (diff) | |
download | hurd-c1ae388a59b58f7c86412e7bfaee1d07f58e6ecc.tar.gz hurd-c1ae388a59b58f7c86412e7bfaee1d07f58e6ecc.tar.bz2 hurd-c1ae388a59b58f7c86412e7bfaee1d07f58e6ecc.zip |
libnetfs: Fix mapping of time fallback to mach device 'time'
* libnetfs/init-init.c (netfs_init): Also call maptime_map with
use_mach_dev set to 1 so libnetfs can be used before the root
filesystem.
Message-Id: <20210202072945.53483-2-damien@zamaudio.com>
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/init-init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnetfs/init-init.c b/libnetfs/init-init.c index 984a5e71..b63e7ffa 100644 --- a/libnetfs/init-init.c +++ b/libnetfs/init-init.c @@ -40,6 +40,8 @@ netfs_init () error_t err; err = maptime_map (0, 0, &netfs_mtime); if (err) + err = maptime_map (1, 0, &netfs_mtime); + if (err) error (2, err, "mapping time"); netfs_protid_class = ports_create_class (netfs_release_protid, 0); |