From 216267bb4b159de5a8382b3c153a86f1e21ef564 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Fri, 18 Sep 2020 12:48:27 +0200 Subject: [PATCH] main: silence annoying error --- kernel/sy_old/mars_main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/sy_old/mars_main.c b/kernel/sy_old/mars_main.c index 04022066..3b9c791a 100644 --- a/kernel/sy_old/mars_main.c +++ b/kernel/sy_old/mars_main.c @@ -5639,9 +5639,10 @@ static int make_sync(struct mars_dent *dent) */ status = sscanf(dent->new_link, "%lld", &start_pos); if (status != 1) { - MARS_ERR("bad syncstatus symlink syntax '%s' (%s)\n", dent->new_link, dent->d_path); - status = -EINVAL; - goto done; + if (strcmp(dent->new_link, ".deleted")) + MARS_ERR("bad syncstatus symlink syntax '%s' (%s)\n", + dent->new_link, dent->d_path); + do_start = false; } rot = dent->d_parent->d_private;