[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unicode build: "comparison is always true" warnings
From: |
Andreas Schwab |
Subject: |
Re: unicode build: "comparison is always true" warnings |
Date: |
Sat, 24 Nov 2007 15:16:38 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
Matthieu Lemerre <address@hidden> writes:
> Andreas Schwab <address@hidden> writes:
>>
>> In which way it is different from what mkstemp is doing?
>>
>
> When you use mktemp, you have to use two operations:
> 1/Create a file name with mktemp
> 2/Open it
That's the same what mkstemp does.
> An attacker could create a symlink with this name file between these
> two operations, thus the file would be erased.
That does not happen, because the open will fail when the file already
exists.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: unicode build: "comparison is always true" warnings, (continued)
- Re: unicode build: "comparison is always true" warnings, Mark A. Hershberger, 2007/11/23
- Re: unicode build: "comparison is always true" warnings, Andreas Schwab, 2007/11/23
- Re: unicode build: "comparison is always true" warnings, Mark A. Hershberger, 2007/11/23
- Re: unicode build: "comparison is always true" warnings, Andreas Schwab, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, Jan Djärv, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, Andreas Schwab, 2007/11/24
- Message not available
- Message not available
- Message not available
- Message not available
- Re: unicode build: "comparison is always true" warnings, Jan Djärv, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, Andreas Schwab, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, Mark A. Hershberger, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, Matthieu Lemerre, 2007/11/24
- Re: unicode build: "comparison is always true" warnings,
Andreas Schwab <=
- Re: unicode build: "comparison is always true" warnings, Matthieu Lemerre, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, David Kastrup, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, Andreas Schwab, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, David Kastrup, 2007/11/24
- Re: unicode build: "comparison is always true" warnings, Mark A. Hershberger, 2007/11/23
- Re: unicode build: "comparison is always true" warnings, Andreas Schwab, 2007/11/23