From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 2 Jun 2003 03:15:57 +0400 From: Grigory Batalov To: devel@altlinux.ru Subject: Re: [devel] NMU: fortune-mod, U: fortunes-ALT Message-Id: <20030602031557.633fe4e1.bga@altlinux.ru> In-Reply-To: <20030601221932.GA631@hell.devel.altlinux.ru> References: <20030601221932.GA631@hell.devel.altlinux.ru> X-Mailer: Sylpheed version 0.8.8 (GTK+ 1.2.10; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: On Mon, 2 Jun 2003 02:19:32 +0400 "Alexey I. Froloff" wrote: > В /incoming/Sisyphus неспешно заливаются: > > 8722e3821e1447217413cd196ed7318d fortune-mod-1.0-ipl33mdk.src.rpm > f3bdf22e056be557463611c6860d4967 fortunes-ALT-20030601-alt1.src.rpm "Любое использование tmpnam(3)&Co есть block bug, если только я не сказал обратного." -- ldv in sisyphus@ Ой! =) А вот такой кусок -- block bug? char temp_filename[256]; ... if (!(ptr = getenv ("TMPDIR"))) fatal_error (2, "TMPDIR"); snprintf (temp_filename, 256, "%s/linpopup.XXXXXX", ptr); file_handle_temp = mkstemp (temp_filename); write (file_handle_temp, message_text, strlen (message_text)); close (file_handle_temp); ... unlink (temp_filename);