Re: So you think you are (or wanna be) a hacker

From: John Summerfield (debian_at_ComputerDatasafe.com.au)
Date: 08/13/04

  • Next message: Tong: "Re: Mouse stopped working"
    Date: Fri, 13 Aug 2004 10:33:18 +0800
    To: debian-user@lists.debian.org
    
    

    John Hasler wrote:

    >John Summerfield writes:
    >
    >
    >>The size of cfgfile is what bothered me as soon as I saw it.Presumably
    >>properly calculating the amount of storage to request takes care of that.
    >>
    >>
    >
    >As I said: use snprintf or do something else. In fact, use snprintf
    >anyway.
    >
    >
    >
    >>Leading / is fine...
    >>
    >>
    >
    >We don't have the rest of the code, but it doesn't seem likely that / is a
    >valid value for HOME.
    >
    >
    >
    You can't assume that. eg:
    [root@ts root]# cat /etc/passwd | grep :/:
    nobody:x:99:99:Nobody:/:/sbin/nologin
    rpc:x:32:32:Portmapper RPC user:/:/bin/false
    [root@ts root]#

    summer@Dolphin:~$ echo $HOME
    /home/summer
    summer@Dolphin:~$ HOME=/ sh -c 'echo $HOME'
    /
    summer@Dolphin:~$ HOME=/$HOME sh -c 'echo $HOME'
    //home/summer
    summer@Dolphin:~$

    If you mean something different from all of these, please clarify.

    -- 
    Cheers
    John
    -- spambait
    1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au
    Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Tong: "Re: Mouse stopped working"

    Relevant Pages

    • dhclient doesnt respond to DHCP OFFER
      ... It has two pcmcia nework cards - one connected to ... Echo (ping) request ...
      (comp.os.linux.networking)
    • Re: Going back to Motorola
      ... >>> saying that those that experienced that echo, ... >> I also discovered that every Verizon Wireless salesman ... >> They only care about one thing - the sale. ... I read on Howard Forums that VZW had gotten the message. ...
      (alt.cellular.verizon)
    • Re: Zoom snaps to full view after edit
      ... The update took care of the problem. ... Echo [MS PPT MVP] http://www.echosvoice.com ... leaving me to find the shape on the slide and zoom ...
      (microsoft.public.powerpoint)
    • Re: Re: How to get an parameter from a remote php script?
      ... > echo $t; ... > does something with this request.. ... > Or, in case you don’t need to store the remote file in a variable, ... Visit Topic URL to contact author (reg. ...
      (comp.lang.php)
    • Re: Going back to Motorola
      ... > saying that those that experienced that echo, ... Another serious issue I have is with the cheap keypad. ... I was in the Verizon Wireless store where I saw that particular phone ... They only care about one thing - the sale. ...
      (alt.cellular.verizon)