Re: ls bug.

From: Chris Faulhaber (jedgarat_private)
Date: Fri Feb 15 2002 - 05:58:00 PST

  • Next message: Leandro Malaquias: "SNMP"

    On Fri, Feb 15, 2002 at 08:27:38AM +0200, Ehud Tenenbaum wrote:
    > Greetings,
    > 
    ...
    > 
    > ls reading flags from filename which might lead to root backdoor as a
    > concept, i.e. cat >-ls;id and the wait for root to ls * .
    > 
    
    The problem is your shell is expanding the '*' before ls(1)
    is called so ls(1) sees:
    
    ls -ls <your files here> ...
    
    Try adding a '--' before the '*':
    
    $ ls -- *
    
    which should give you the correct output.
    
    -- 
    Chris D. Faulhaber - jedgarat_private - jedgarat_private
    --------------------------------------------------------
    FreeBSD: The Power To Serve   -   http://www.FreeBSD.org
    
    
    



    This archive was generated by hypermail 2b30 : Fri Feb 15 2002 - 11:09:26 PST