Avoid referencing undefined max_mount_entry.
size_t max_len = 0;
mnt_t *m, *match = NULL;
+#ifndef TESTSUITE
if (!max_mount_entry)
read_mounts ();
+#endif
char *path;
if (s[0] == '.' && isslash (s[1]))
s += 2;
setmntent (const char *, const char *)
{
m = mount_table;
+#ifndef TESTSUITE
if (!max_mount_entry)
read_mounts ();
+#endif
return NULL;
}
#ifndef TESTSUITE
extern mnt_t mount_table[255];
-#endif
extern int max_mount_entry;
+#endif
#ifndef SYMLINK_MAX
#define SYMLINK_MAX 4095 /* PATH_MAX - 1 */