diff options
author | Solar Designer <solar@openwall.com> | 2004-01-26 04:22:18 +0300 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2004-02-01 17:40:02 +0000 |
commit | 2359510ddb135dcc6e80153f51cff0a97b20b597 (patch) | |
tree | b074c5df813a1e3e529f0330620b456ecc4988e6 /pod/perlopentut.pod | |
parent | a95a5f75a0e72874474834cd9e274afa0f23b6d8 (diff) | |
download | perl-2359510ddb135dcc6e80153f51cff0a97b20b597.tar.gz |
Re: [perl #15063] /tmp issues
Message-ID: <20040125222218.GA13499@openwall.com>
Remove insecure usage of /tmp from code and documentation
p4raw-id: //depot/perl@22258
Diffstat (limited to 'pod/perlopentut.pod')
-rw-r--r-- | pod/perlopentut.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlopentut.pod b/pod/perlopentut.pod index 5389c1f722..0b60096f24 100644 --- a/pod/perlopentut.pod +++ b/pod/perlopentut.pod @@ -192,11 +192,11 @@ whether it only works on existing files or always clobbers existing ones. open(WTMP, "+< /usr/adm/wtmp") || die "can't open /usr/adm/wtmp: $!"; - open(SCREEN, "+> /tmp/lkscreen") - || die "can't open /tmp/lkscreen: $!"; + open(SCREEN, "+> lkscreen") + || die "can't open lkscreen: $!"; - open(LOGFILE, "+>> /tmp/applog" - || die "can't open /tmp/applog: $!"; + open(LOGFILE, "+>> /var/log/applog" + || die "can't open /var/log/applog: $!"; The first one won't create a new file, and the second one will always clobber an old one. The third one will create a new file if necessary |