Check for C:\FREEBSD also, for backwards compatibility
This commit is contained in:
parent
fa7bfeb7f9
commit
b39d7dea7b
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: dos.c,v 1.19 1998/09/08 11:44:07 jkh Exp $
|
||||
* $Id: dos.c,v 1.20 1998/10/05 03:32:03 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
@ -87,7 +87,7 @@ mediaGetDOS(Device *dev, char *file, Boolean probe)
|
|||
snprintf(buf, PATH_MAX, "/dist/%s", file);
|
||||
if (file_readable(buf))
|
||||
return fopen(buf, "r");
|
||||
snprintf(buf, PATH_MAX, "/dist/dists/%s", file);
|
||||
snprintf(buf, PATH_MAX, "/dist/FREEBSD/%s", file);
|
||||
if (file_readable(buf))
|
||||
return fopen(buf, "r");
|
||||
snprintf(buf, PATH_MAX, "/dist/%s/%s", variable_get(VAR_RELNAME), file);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: dos.c,v 1.19 1998/09/08 11:44:07 jkh Exp $
|
||||
* $Id: dos.c,v 1.20 1998/10/05 03:32:03 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
@ -87,7 +87,7 @@ mediaGetDOS(Device *dev, char *file, Boolean probe)
|
|||
snprintf(buf, PATH_MAX, "/dist/%s", file);
|
||||
if (file_readable(buf))
|
||||
return fopen(buf, "r");
|
||||
snprintf(buf, PATH_MAX, "/dist/dists/%s", file);
|
||||
snprintf(buf, PATH_MAX, "/dist/FREEBSD/%s", file);
|
||||
if (file_readable(buf))
|
||||
return fopen(buf, "r");
|
||||
snprintf(buf, PATH_MAX, "/dist/%s/%s", variable_get(VAR_RELNAME), file);
|
||||
|
|
Loading…
Reference in New Issue