From 2f43ed80e444b6970aeb9694e471f256e09370ba Mon Sep 17 00:00:00 2001 From: ewt Date: Mon, 17 Feb 1997 16:53:30 +0000 Subject: [PATCH] -Vp should use realpath() CVS patchset: 1426 CVS date: 1997/02/17 16:53:30 --- verify.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/verify.c b/verify.c index ab397a2..707fb07 100644 --- a/verify.c +++ b/verify.c @@ -144,6 +144,7 @@ void doVerify(char * prefix, enum verifysources source, char ** argv, struct urlContext context; char * arg; int isUrl; + char path[255]; if (source == VERIFY_RPM && !(verifyFlags & VERIFY_DEPS)) { db = NULL; @@ -212,6 +213,10 @@ void doVerify(char * prefix, enum verifysources source, char ** argv, break; case VERIFY_PATH: + if (*arg != '/') { + if (realpath(arg, path) != NULL) + arg = path; + } if (rpmdbFindByFile(db, arg, &matches)) { fprintf(stderr, "file %s is not owned by any package\n", arg); -- 2.7.4