aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.c
diff options
context:
space:
mode:
Diffstat (limited to 'pseudo.c')
-rw-r--r--pseudo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pseudo.c b/pseudo.c
index 484c76c..bedce6b 100644
--- a/pseudo.c
+++ b/pseudo.c
@@ -656,6 +656,16 @@ pseudo_op(pseudo_msg_t *msg, const char *program, const char *tag) {
(unsigned long long) msg->ino);
pdb_unlink_file_dev(msg);
}
+ /* if we had a match for this path, stash it in the
+ * message -- client may want to relink it if the
+ * real_unlink() fails.
+ */
+ if (found_path) {
+ *msg = by_path;
+ msg->result = RESULT_SUCCEED;
+ } else {
+ msg->result = RESULT_NONE;
+ }
break;
case OP_MKDIR: /* FALLTHROUGH */
case OP_MKNOD: