[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in function set_shell_name() in shell.c?
From: |
mats |
Subject: |
Bug in function set_shell_name() in shell.c? |
Date: |
Mon, 2 Sep 2002 20:51:04 +0200 |
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wall
-O2 -fomit-frame-pointer
uname output: Linux snowbee 2.4.18 #4 Tue Jul 30 02:53:41 CEST 2002 i686 unknown
Machine Type: i686-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
When bash is called as "rbash", it should switch to unrestricted
mode while reading the startup files. However, this doesn't
happen due to the variable 'shell_name' in set_shell_name()
getting reinitialized to argv0 *after* it is stripped from any
preceding '-' character, causing the shell_is_restricted()
function to fail since it looks for "rbash", not "-rbash". This in
turn causes the switching to unrestricted mode during parsing of
the startup files to not happen.
Repeat-By:
Invoking bash as "rbash".
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in function set_shell_name() in shell.c?,
mats <=