--- src/sys/boot/common/ls.c 2003/11/10 06:08:31 1.4 +++ src/sys/boot/common/ls.c 2008/09/02 17:21:12 1.5 @@ -158,7 +158,7 @@ ls_getdir(char **pathp) if (*cp == 0) strcat(path, "/"); - fd = open(path, O_RDONLY); + fd = rel_open(path, O_RDONLY); if (fd < 0) { sprintf(command_errbuf, "open '%s' failed: %s", path, strerror(errno)); goto out;