Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150485243
D44538.1792477425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
877 B
Referenced Files
None
Subscribers
None
D44538.1792477425.diff
View Options
diff --git a/usr.sbin/config/mkmakefile.cc b/usr.sbin/config/mkmakefile.cc
--- a/usr.sbin/config/mkmakefile.cc
+++ b/usr.sbin/config/mkmakefile.cc
@@ -384,13 +384,25 @@
struct file_list *tp;
struct device *dp;
struct opt *op;
+ struct includepath *ipath;
configword wd;
- char *rfile, *compilewith, *depends, *clean, *warning;
+ char *rfile, *compilewith, *depends, *clean, *fnamebuf, *warning;
const char *objprefix;
int compile, match, nreqs, std, filetype, negate,
imp_rule, no_ctfconvert, no_obj, before_depend, nowerror;
fp = fopen(fname, "r");
+ if (fp == NULL) {
+ SLIST_FOREACH(ipath, &includepath, path_next) {
+ asprintf(&fnamebuf, "%s/%s", ipath->path, fname);
+ if (fnamebuf != NULL) {
+ fp = fopen(fnamebuf, "r");
+ if (fp != NULL)
+ break;
+ free(fnamebuf);
+ }
+ }
+ }
if (fp == NULL)
err(1, "%s", fname);
next:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 20, 6:23 AM (6 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30503456
Default Alt Text
D44538.1792477425.diff (877 B)
Attached To
Mode
D44538: config: Search include paths for files to be read (options, files)
Attached
Detach File
Event Timeline
Log In to Comment