CVS patchset: 535
CVS date: 1996/04/15 21:06:26
#include <string.h>
#include <sys/stat.h>
#include <time.h>
+#include <sys/param.h>
#include <unistd.h>
#include "lib/messages.h"
case QUERY_SPATH:
case QUERY_PATH:
+ if (*arg != '/') {
+ char path[255];
+ if (realpath(arg, path) != NULL)
+ arg = path;
+ }
if (rpmdbFindByFile(db, arg, &matches)) {
fprintf(stderr, "file %s is not owned by any package\n", arg);
retcode = 1;