Re: So you think you are (or wanna be) a hacker
From: John Summerfield (debian_at_ComputerDatasafe.com.au)
Date: 08/13/04
- Previous message: Tong: "Re: Packages needed for Cups Foomatic printer"
- In reply to: John Hasler: "Re: So you think you are (or wanna be) a hacker"
- Next in thread: John Hasler: "Re: So you think you are (or wanna be) a hacker"
- Reply: John Hasler: "Re: So you think you are (or wanna be) a hacker"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Tong: "Re: Packages needed for Cups Foomatic printer"
- In reply to: John Hasler: "Re: So you think you are (or wanna be) a hacker"
- Next in thread: John Hasler: "Re: So you think you are (or wanna be) a hacker"
- Reply: John Hasler: "Re: So you think you are (or wanna be) a hacker"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|