aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.c
diff options
context:
space:
mode:
Diffstat (limited to 'pseudo.c')
-rw-r--r--pseudo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pseudo.c b/pseudo.c
index 350ad6b..2e2d56f 100644
--- a/pseudo.c
+++ b/pseudo.c
@@ -474,7 +474,7 @@ pseudo_op(pseudo_msg_t *msg, const char *program, const char *tag) {
/* search on original inode -- in case of mismatch */
by_ino = msg_header;
if (msg_header.ino != 0) {
- if (msg->pathlen && !pdb_find_file_exact(msg)) {
+ if (found_path && msg->pathlen && !pdb_find_file_exact(msg)) {
/* restore header contents */
by_ino = *msg;
*msg = msg_header;