Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 233 lines (141 sloc) 7.187 kb
1bd517a @timj pre-emptively load Carp::Heavy so that errors are reported properly when...
authored
1 2006-08-18 Tim Jenness <timj@apele.jach.hawaii.edu>
2
3 * Temp.pm: pre-emptively load Carp::Heavy. If we don't when we run out of file
4 handles and attempt to call croak() we get an error message telling
5 us that Carp::Heavy won't load rather than an error telling us we
6 have run out of file handles. (pointed out by bjoern_at_hoehrmann.de RT #14151)
7
d1b23ad @timj minimum version now 5.004
authored
8 2005-09-01 Tim Jenness <tjenness@cpan.org>
9
10 * Temp.pm: Sebastien Aperghis-Tramoni indicates that File::Temp
1bd517a @timj pre-emptively load Carp::Heavy so that errors are reported properly when...
authored
11 works with perl 5.004 so change the minimum perl version. (RT #14149)
d1b23ad @timj minimum version now 5.004
authored
12
1bd517a @timj pre-emptively load Carp::Heavy so that errors are reported properly when...
authored
13 * Temp.pm: Use effective uid rather than real uid (Alexey Tourbin RT #14218)
51a9d31 @timj use effective uid for security check rather than real uid
authored
14
df97894 @timj Fix debug statement and re-release
authored
15 2005-02-22 Tim Jenness <timj@jach.hawaii.edu>
16
17 --- RELEASE V0.16 ---
18
19 * Temp.pm: Remove spurious debug statement
20
57683f8 @timj Fix rmtree argument to remove write protected files
authored
21 2005-02-21 Tim Jenness <tjenness@cpan.org>
22
78514fe @timj CPAN v0.15
authored
23 --- RELEASE V0.15 ---
24
dfee19a @timj Add unlink_on_destroy method
authored
25 * Temp.pm (unlink_on_destroy): Add post-object creation method to
26 control whether the temp file will be unlinked when the object
27 goes out of scope.
78514fe @timj CPAN v0.15
authored
28
37f2479 @timj Increase MAX_TRIES to 1000
authored
29 * Temp.pm: Increase maximum number of tries before aborting.
30
786be7b @timj Add $KEEP_ALL for debugging
authored
31 * Temp.pm: Add $KEEP_ALL to allow the temporary files to be
0f2f9af @timj More clarification in changelog
authored
32 retained whilst debugging (suggestion from Ed Avis [and others]).
731f9f3 @timj Make sure that temp files are writable before we try to unlink them. RT ...
authored
33
da3116b @timj Use O_NOFOLLOW rather than the erroneous O_FOLLOW
authored
34 * Temp.pm: Temp files should have been opened O_NOFOLLOW rather
35 than O_FOLLOW! (thanks to Marc Tardif)
36
941c3c6 @timj Add explicit cleanup() function.
authored
37 * Temp.pm: Add cleanup() function so that temp files that would be
38 removed by an END block can be removed by a daemon. (RT wishlist
39 item #6928 by Robert Rothenberg)
40
731f9f3 @timj Make sure that temp files are writable before we try to unlink them. RT ...
authored
41 * Temp.pm: Force chmod on file before unlinking it. This can be a
a985e0d @timj Tweak some of the changelog entries
authored
42 problem on windows (see RT bug #6935). tempdir() has been fixed by
43 Slaven's earlier patch to change the rmtree arguments.
731f9f3 @timj Make sure that temp files are writable before we try to unlink them. RT ...
authored
44
f8eb6ef @timj Add interix support
authored
45 * Temp.pm (top_system_uid): Add interix patch from Todd Vierling
7fbbe7e @timj Replace default underscore filehandle with an explicit path since this w...
authored
46
0f2f9af @timj More clarification in changelog
authored
47 * Temp.pm (_gettemp): Pod patch from Steven Lembark clarifying the
48 error message associated with two few XXXXs
7fbbe7e @timj Replace default underscore filehandle with an explicit path since this w...
authored
49
7f7f433 @timj At Daniel Macks suggestion, now index END block removals by process ID s...
authored
50 * Temp.pm: Add note on forking and make sure that END blocks only
51 remove temporary files created by the current process ID (prompted
941c3c6 @timj Add explicit cleanup() function.
authored
52 by Daniel Macks in RT bug #11067)
7fbbe7e @timj Replace default underscore filehandle with an explicit path since this w...
authored
53
54 * Temp.pm (cmpstat): Roman Vasicek reported problems with the _
0124b9f @timj Reference relevant RT bug
authored
55 filehandle. Play it safe and remove that handle. (see RT bug #8822)
f8eb6ef @timj Add interix support
authored
56
57683f8 @timj Fix rmtree argument to remove write protected files
authored
57 * t/tempfile.t: Add test for write proteceted temp file (thanks to
58 Slaven Rezic)
59
60 * Temp.pm (_can_do_level): Change argument to rmtree to make it
61 attempt to remove write-protected files on cleanup (thanks to
62 Slaven Rezic)
63
89ea78c @timj Add note on binmode() usage
authored
64 * Temp.pm: Add note on binmode usage
65
1ab501d @timj MPE/IX fixes
authored
66 2003-08-16 Tim Jenness <tjenness@cpan.org>
67
5e1be27 @timj Add OO implementation - v0.14
authored
68 --- RELEASE V0.14 ---
69
70 * t/object.t: Add test of OO interface and switch to Test::More
71
72 * Temp.pm: Add object-oriented interface.
73
1ab501d @timj MPE/IX fixes
authored
74 * Temp.pm: mpeix fixes from Ken Hirsch <hirschk@labcorp.com>
005bd1c @timj v0.13 release notes
authored
75
1ab501d @timj MPE/IX fixes
authored
76 2003-08-15 Tim Jenness <tjenness@cpan.org>
77
005bd1c @timj v0.13 release notes
authored
78 --- RELEASE V0.13 ---
79
80 * Temp.pm: Integrate doc fixes from bleadperl (Slaven Rezic and
81 Jeffrey Friedl)
82
83 * Makefile.PL: Add INSTALLDIRS switch on perl version so that the
84 module installs into the correct place for perl 5.6.1 and newer.
85
ea69d35 @timj Integrate MacOS changes that were in v0.13 of File::Temp available in pe...
authored
86 2002-08-28 Tim Jenness <timj@jach.hawaii.edu>
87
005bd1c @timj v0.13 release notes
authored
88 * Temp.pm: Synch with perl 5.8.0 v0.13 MacOS fixes (Chris Nandor)
ea69d35 @timj Integrate MacOS changes that were in v0.13 of File::Temp available in pe...
authored
89
878bdb9 @timj Add release 0.12
authored
90 2001-02-22 Tim Jenness <timj@jach.hawaii.edu>
91
92 --- RELEASE V0.12 ---
73b25e0 @timj tmpfile returns undef on error rather than croaking + protection of unli...
authored
93
94 * t/posix.t: The unlink0 tests now skip on failure
95
96 * t/mktemp.t: The unlink0 tests now skip on failure
97
98 * Temp.pm (tmpfile): tmpfile returns undef on failure rather than
99 croaking.
878bdb9 @timj Add release 0.12
authored
100
eb6d2f1 @timj Add fix for CGI::Carp. Remove carps and use error message propogation
authored
101 2001-02-21 Timothy Jenness <t.jenness@jach.hawaii.edu>
102
878bdb9 @timj Add release 0.12
authored
103 * Temp.pm:
104 -Add fix for CGI::Carp
105 [Thanks to John Labovitz <johnl@valiha.inside.sealabs.com>]
106 - Use error string to propogate reason rather than a carp
eb6d2f1 @timj Add fix for CGI::Carp. Remove carps and use error message propogation
authored
107
1b42721 @timj More security fixes and DOS support
authored
108 2000-11-24 Tim Jenness <timj@jach.hawaii.edu>
109
db18b85 @timj Update to V0.11
authored
110 --- RELEASE V0.11 ----
111
112 * t/tempfile.t: Add a test to make sure the file is present after
113 close and another to use tempfile in a scalar context.
114
115 * Temp.pm: Fix bug on NT with O_TEMPORARY causing the file to be
116 removed before the program exits.
117
118 ---- RELEASE V0.10 ----
119
1b42721 @timj More security fixes and DOS support
authored
120 * Temp.pm: Incorporate fixes up to bleedperl 7825. Cross platform
121 fixes.
122
123 * t/security.t: Incorporate fixes from bleedperl 7825 - adds more
124 cross platform support and more skips on the basis that this is
125 not testing your system security, just the module.
126
f4aa15f @timj - More VMS and cygwin patches - Dont use O_TEMPORARY in all cases
authored
127 2000-08-16 Tim Jenness <timj@jach.hawaii.edu>
128
129 * Temp.pm (_gettemp): Dont use VMS::Stdio if we want the file
130 to remain after closing.
131
132 2000-08-15 Tim Jenness <timj@jach.hawaii.edu>
133
134 * Temp.pm (_can_do_level): cygwin patch
135
136 2000-08-14 Tim Jenness <timj@jach.hawaii.edu>
137
138 * Temp.pm: Add OPENTEMPFLAGS to support UNLINK=>0
139 More tweaks to VMS support (now uses VMS::Stdio)
140
7172865 @timj update for V0.09 CPAN release
authored
141 2000-07-26 Tim Jenness <timj@jach.hawaii.edu>
142
143 * Release V0.09 to CPAN
144
145 * README: Update for V0.09
146
62b270e @timj - Add VMS support - Tweak OS/2 support
authored
147 2000-07-25 Tim Jenness <timj@jach.hawaii.edu>
148
149 * t/security.t: OS/2 can not do the security tests.
150
151 * Temp.pm: Add Support for VMS and OS/2
152
39b8d6e @timj V0.08 version
authored
153 2000-05-15 Tim Jenness <timj@jach.hawaii.edu>
154
155 * Release V0.08 to CPAN
156
157 * t/mktemp.t: Skip the test for unlink0 if it fails since in most
158 cases this indicates an NFS problem.
159
160 * Temp.pm (_can_do_level): Add check to make sure an OS can handle
161 the required safe level
162 (safe_level): Check the level can be supported before allowing it
163 to change
164 (END): Change order of cleanup so that files are removed ahead of
165 temp dirs (since files may be in the temp dirs)
166
76286d8 @timj END block reorg
authored
167 2000-05-08 Tim Jenness <timj@jach.hawaii.edu>
168
169 * Temp.pm: Reorganize END block
170
171 * t/tempfile.t: Correct tests for new position of END{} block
172
173 * t/security.t: Correct tests for new position of END{} block
174
175 * t/posix.t: add # to print output
176
177 * t/tempfile.t: Add # to print output
178
179 * t/mktemp.t: Add # to print output
180
181 * t/security.t: Add # to print output
182
d935f49 @timj Move openflags outside of the subroutine since we only have to do this o...
authored
183 2000-04-28 Tim Jenness <timj@jach.hawaii.edu>
184
185 * Temp.pm: Calculate OPENFLAGS outside of subroutine. This
186 improves speed of the commands by nearly a factor of 3.
187 (_replace_XX): Inline the character replacement code rather than
188 using _randchar subroutine. Improves performance by an additional 8%.
189
f4d1245 @timj changelog for 0.07
authored
190 2000-04-27 Tim Jenness <t.jenness@jach.hawaii.edu>
191
192 * t/posix.t: Add explicit autoflush on filehandle
193
194 * t/mktemp.t: Add explicit autoflush on filehandle
195
196 * Temp.pm: (unlink0): Disallow HIGH and MEDIUM tests if running
197 perl 5.005 or earlier.
198
199 * t/security.t: Specify perl version to allow for tests
200
201 * Add support for perl 5.005 (remove 'our' and auto-vivifying file
202 handles). VERSION NUMBER NOW 0.07
203
204 * README: Update in preparation for V0.06
3ccd426 @timj First versions
authored
205
206 * Temp.pm (_deferred_unlink): Add new internal routine to centralise the
207 configuring of END blocks. This also fixes a bug where only the
208 first file was being unlinked in the END block (due to scoping).
96bf08d @timj Add O_NOINHERIT and O_TEMPORARY to sysopen (Thanks to Tom C. for suggest...
authored
209
3ccd426 @timj First versions
authored
210 (_can_unlink_opened_file): Rename from _can_unlink. Will now
211 return false if running on Windows.
96bf08d @timj Add O_NOINHERIT and O_TEMPORARY to sysopen (Thanks to Tom C. for suggest...
authored
212
3ccd426 @timj First versions
authored
213 (_is_verysafe): If _PC_CHOWN_RESTRICTED is not available assume
214 that "chown giveaway" is possible anyway.
96bf08d @timj Add O_NOINHERIT and O_TEMPORARY to sysopen (Thanks to Tom C. for suggest...
authored
215
3ccd426 @timj First versions
authored
216 (unlink0): If can not unlink an open file, simply defer removal
217 until later.
218
96bf08d @timj Add O_NOINHERIT and O_TEMPORARY to sysopen (Thanks to Tom C. for suggest...
authored
219 (_gettemp): Add O_NOINHERIT and O_TEMPORARY flags to sysopen if
220 they are available (Thanks to Tom Christiansen for this)
221
3ccd426 @timj First versions
authored
222 * t/mktemp.t: Add test
223
224 * t/posix.t: Add test
225
226 * t/security.t: Add test
227
228 * t/tempfile.t: Add test
229
f4d1245 @timj changelog for 0.07
authored
230 2000-03-14 Tim Jenness <t.jenness@jach.hawaii.edu>
3ccd426 @timj First versions
authored
231
232 * Release v0.05 to CPAN
Something went wrong with that request. Please try again.