From 3b9087e8a3d0ceba3ab5f7695e84f41baa54fb77 Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Sun, 13 Mar 2016 10:31:21 +0100 Subject: [PATCH] (mc_shell_recognize_path): clarify duplicate comments Signed-off-by: Yury V. Zaytsev --- lib/shell.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/shell.c b/lib/shell.c index 05ac77431..da33ef4e8 100644 --- a/lib/shell.c +++ b/lib/shell.c @@ -188,21 +188,19 @@ mc_shell_recognize_real_path (mc_shell_t * mc_shell) static void mc_shell_recognize_path (mc_shell_t * mc_shell) { + /* If shell is not symlinked to busybox, it is safe to assume it is a real shell */ if (strstr (mc_shell->path, "/bash") != NULL || getenv ("BASH") != NULL) { - /* If bash is not symlinked to busybox, it is safe to assume it is a real bash */ mc_shell->type = SHELL_BASH; mc_shell->name = "bash"; } else if (strstr (mc_shell->path, "/sh") != NULL || getenv ("SH") != NULL) { - /* If bash is not symlinked to busybox, it is safe to assume it is a real bash */ mc_shell->type = SHELL_SH; mc_shell->name = "sh"; } else if (strstr (mc_shell->path, "/ash") != NULL || getenv ("ASH") != NULL) { - /* If bash is not symlinked to busybox, it is safe to assume it is a real bash */ mc_shell->type = SHELL_ASH_BUSYBOX; mc_shell->name = "ash"; } -- 2.11.4.GIT