From b57bc35dd92893b24b65392df6c768d1661550dc Mon Sep 17 00:00:00 2001 From: Marcel Rodrigues Date: Tue, 15 Dec 2015 19:43:44 -0200 Subject: [PATCH] Fix deletion of single symlink-to-directory entry. --- rover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rover.c b/rover.c index 56f68d2..63e24db 100644 --- a/rover.c +++ b/rover.c @@ -1261,7 +1261,7 @@ main(int argc, char *argv[]) message(YELLOW, "Delete \"%s\"? (Y/n)", ENAME(ESEL)); if (rover_getch() == 'Y') { const char *name = ENAME(ESEL); - int ret = S_ISDIR(EMODE(ESEL)) ? deldir(name) : delfile(name); + int ret = ISDIR(ENAME(ESEL)) ? deldir(name) : delfile(name); reload(); if (ret) message(RED, "Could not delete \"%s\".", ENAME(ESEL)); -- 2.11.4.GIT