From: Stanislav Ievlev <inger@altlinux.org> To: devel@altlinux.ru Subject: Re: [devel] NMU: fortune-mod, U: fortunes-ALT Date: Mon, 2 Jun 2003 11:46:55 +0400 Message-ID: <20030602074655.GC8433@basalt.office.altlinux.org> (raw) In-Reply-To: <20030602031557.633fe4e1.bga@altlinux.ru> On Mon, Jun 02, 2003 at 03:15:57AM +0400, Grigory Batalov wrote: > On Mon, 2 Jun 2003 02:19:32 +0400 > "Alexey I. Froloff" <raorn@binec.ru> 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"); Это не фатальная ошибка. надо использовать /tmp если нет 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); > _______________________________________________ > Devel mailing list > Devel@altlinux.ru > http://altlinux.ru/mailman/listinfo/devel
next prev parent reply other threads:[~2003-06-02 7:46 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-06-01 22:19 Alexey I. Froloff 2003-06-01 23:15 ` Grigory Batalov 2003-06-02 7:46 ` Stanislav Ievlev [this message] 2003-06-02 18:38 ` Grigory Batalov 2003-06-03 6:20 ` [devel] " Anton V. Boyarshinov 2003-06-02 8:18 ` [devel] " Dmitry V. Levin 2003-06-02 9:02 ` Igor Homyakov 2003-06-02 9:40 ` [devel] " Alexey Tourbin 2003-06-02 10:49 ` [devel] Re: printf(3) Igor Homyakov 2003-06-03 8:07 ` Dmitry V. Levin 2003-06-02 10:48 ` [devel] mkstemp in linpopup (was: NMU: fortune-mod, U: fortunes-ALT) Grigory Batalov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030602074655.GC8433@basalt.office.altlinux.org \ --to=inger@altlinux.org \ --cc=devel@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git