diff options
author | Roland McGrath <roland@redhat.com> | 1993-03-24 20:13:56 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-03-24 20:13:56 +0000 |
commit | 164dcdad2218596c1ba03226fcf7b819b2bce5f5 (patch) | |
tree | 86d186c552fc6aa4c042e0e43871b798bef3a95a | |
parent | f3bd74418744c442202f249d87cb12db596aec81 (diff) | |
download | gunmake-164dcdad2218596c1ba03226fcf7b819b2bce5f5.tar.gz |
Formerly vpath.c.~10~
-rw-r--r-- | vpath.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |