projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3bd744
)
Formerly vpath.c.~10~
author
Roland McGrath
<roland@redhat.com>
Wed, 24 Mar 1993 20:13:56 +0000
(20:13 +0000)
committer
Roland McGrath
<roland@redhat.com>
Wed, 24 Mar 1993 20:13:56 +0000
(20:13 +0000)
vpath.c
patch
|
blob
|
history
diff --git
a/vpath.c
b/vpath.c
index
e58cf07
..
33e92c7
100644
(file)
--- a/
vpath.c
+++ b/
vpath.c
@@
-346,8
+346,12
@@
selective_vpath_search (path, file, mtime_ptr)
/* Now add the name-within-directory at the end of NAME. */
if (n != name && n[-1] != '/')
- *n = '/';
- bcopy (filename, n + 1, flen + 1);
+ {
+ *n = '/';
+ bcopy (filename, n + 1, flen + 1);
+ }
+ else
+ bcopy (filename, n, flen + 1);
if (not_target)
/* Since *FILE is not a target, if the file is