Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142383567
D44538.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
877 B
Referenced Files
None
Subscribers
None
D44538.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, Jan 20, 9:50 AM (16 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27761809
Default Alt Text
D44538.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