diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/boot-start.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index 1e4a1c64..b62d5f30 100644 --- a/libdiskfs/boot-start.c +++ b/libdiskfs/boot-start.c @@ -237,7 +237,8 @@ diskfs_start_bootstrap () } else if (retry == FS_RETRY_MAGICAL && pathbuf[0] == '/') { - assert (init_lookups < SYMLOOP_MAX); + assert (sysconf (_SC_SYMLOOP_MAX) < 0 || + init_lookups < sysconf (_SC_SYMLOOP_MAX)); /* INITNAME is a symlink with an absolute target, so try again. */ initname = strdupa (pathbuf); |