[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[50 character or so descriptive subject here (for reference)]

From: Martin Wheatley
Subject: [50 character or so descriptive subject here (for reference)]
Date: Thu, 29 Jun 2006 10:29:39 +0100 (BST)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.7
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.7' -DCONF_MACHTYPE='sparc-sun-solaris2.7' 
-I/usr/local/depot/bash-2.03/include -g -O2
uname output: SunOS xn-sysadm-4 5.10 Generic_118822-30 sun4u sparc 
Machine Type: sparc-sun-solaris2.7

Bash Version: 2.03
Patch Level: 0
Release Status: release

        Bash may inadvertently execute a command that the user did not 
        if STDIN is closed.

        Unfortunately I can't construct a test case that doesn't need
        our local s/ware.

        But the problem is ...

        When bash reads input (in interactive mode) if it gets EOF
        it then executes any partial command that is in the input buffer - even 
though <CR>
        has not been entered by the user

        Incomplete commands should not be executed - they can have disasterous

                If the command being entered were "rm -rf 
                but the input is terminated just at the point where username 
has been
                entered then the user's /home dircetory is trashed.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]