[Pharo-project] [squeak-dev] Security Vunerability in SqueakSource

Tobias Pape Das.Linux at gmx.de
Mon Mar 21 16:41:07 UTC 2011


Am 2011-03-21 um 17:23 schrieb Bert Freudenberg:

> 
> On 21.03.2011, at 16:57, Igor Stasenko wrote:
> 
>> On 21 March 2011 12:54, Bert Freudenberg <bert at freudenbergs.de> wrote:
>>> 
>>> On 21.03.2011, at 12:40, Marcus Denker wrote:
>>> 
>>> 
>>> 
>>> IIRC SqueakSource keeps the old version as a separate file when "overwriting", so nothing is really lost. It's cumbersome to restore though indeed.
>>> 
>> 
>> yeah, we saw that mechanism there. But have no idea where it storing backups :)
> 
> I'd have to look at the code but I think it just renames the old file, appending a numeric suffix.
> 
> - Bert -
> 
> 
> 

It appends the date:

backupExtensionFor: aString
	| timestamp |
	timestamp := TimeStamp current.
	^String streamContents: [ :stream |
		timestamp date printOn: stream format: #(3 2 1 $- 1 1 2).
		stream nextPut: $..
		stream nextPutAll: (timestamp time print24 collect: [ :each |
			each isDigit ifTrue: [ each ] ifFalse: [ $- ] ]) ].

So Long,
	-Tobias




More information about the Squeak-dev mailing list