diff options
author | root <devnull@localhost> | 1996-08-08 13:25:27 +0000 |
---|---|---|
committer | root <devnull@localhost> | 1996-08-08 13:25:27 +0000 |
commit | 845866dcc9b48dd0f7046a15126c96ec972a5e26 (patch) | |
tree | 332cba2112ac96619da0a66878dc6984eb8cdf23 /build | |
parent | 4e972f25e1441d4708b8393b5b35d88dc79b711f (diff) | |
download | rpm-845866dcc9b48dd0f7046a15126c96ec972a5e26.tar.gz rpm-845866dcc9b48dd0f7046a15126c96ec972a5e26.tar.bz2 rpm-845866dcc9b48dd0f7046a15126c96ec972a5e26.zip |
strip leading directories from ldd output
CVS patchset: 944
CVS date: 1996/08/08 13:25:27
Diffstat (limited to 'build')
-rw-r--r-- | build/reqprov.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/reqprov.c b/build/reqprov.c index cb74964cd..121f9162f 100644 --- a/build/reqprov.c +++ b/build/reqprov.c @@ -287,6 +287,9 @@ int generateAutoReqProv(Header header, struct PackageRec *p) s++; } *s = '\0'; + if ((s = strrchr(tok, '/'))) { + tok = s + 1; + } addReqProv(p, REQUIRE_ANY, tok, NULL); } |