From da807b786126e1088cfe45bf022caf6c54c09a91 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 15 Jul 1994 16:16:36 +0000 Subject: Formerly fsys-getroot.c.~12~ --- libdiskfs/fsys-getroot.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c index 687d4192..cce1dda5 100644 --- a/libdiskfs/fsys-getroot.c +++ b/libdiskfs/fsys-getroot.c @@ -101,9 +101,12 @@ diskfs_S_fsys_getroot (fsys_t controlport, char pathbuf[diskfs_root_node->dn_stat.st_size + 1]; int amt; - error = diskfs_node_rdwr (diskfs_root_node, pathbuf, 0, - diskfs_root_node->dn_stat.st_size, 0, - 0, &amt); + if (diskfs_read_symlink_hook) + error = (*diskfs_read_symlink_hook) (diskfs_root_node, pathbuf); + if (!diskfs_read_symlink_hook || error == EINVAL) + error = diskfs_node_rdwr (diskfs_root_node, pathbuf, 0, + diskfs_root_node->dn_stat.st_size, 0, + 0, &amt); pathbuf[amt] = '\0'; mutex_unlock (&diskfs_root_node->lock); -- cgit v1.2.3