ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Stanislav Ievlev <inger@altlinux.org>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] Re: u: xrcode-1.0-alt1
Date: Thu, 29 May 2003 11:45:22 +0400
Message-ID: <20030529074522.GF23462@basalt.office.altlinux.org> (raw)
In-Reply-To: <20030527105725.GA15382@home-pool4-116.com2com.ru>

On Tue, May 27, 2003 at 02:57:25PM +0400, Yura Zotov wrote:
> On Tue, May 27, 2003 at 02:28:22PM +0400, Dmitry V. Levin wrote:
> > On Tue, May 27, 2003 at 02:14:26PM +0400, Yura Zotov wrote:
> > > On Tue, May 27, 2003 at 02:05:33PM +0400, Dmitry V. Levin wrote:
> > > > On Tue, May 27, 2003 at 12:48:14PM +0300, Michael Shigorin wrote:
> > > > > On Mon, May 26, 2003 at 11:58:16PM +0400, Dmitry V. Levin wrote:
> > > > > > > PS: в recode есть некрасивость имени использующегося в одном
> > > > > > > codepath tmpnam(3), но патчить это сейчас уже совсем лень :-(
> > > > > > Зачем собирать пакеты, в которых заведомо есть block-баги?
> > > > > > Или это по принципу "работает и ладно"?
> > > > > 
> > > > > Это по принципу "так, а теперь кто отточил умение до автоматизма
> > > > > -- подскажите, что с _этим_ делать".  Потому что в 22:46:00 меня,
> > > > > очевидно, более чем на прогулку по manpages не хватило.
> > > > > 
> > > > > Это раз.  Два -- IMO это minor/major, но никак не block bug.
> > > > 
> > > > Любое использование tmpnam(3)&Co есть block bug, если только я не сказал
> > > > обратного.
> > > 
> > > Тогда вопрос. А что вместо него можно использовать? mkstemp?
> > 
> > Только mkstemp(3)/mkdtemp(3).
> > 
> > Бывают исключения, но их нужно оговаривать особо.
> 
> Я сейчас поглядел код ROOT на предмет tmpnam и обнаружил места,
> которые я не знаю, как перевести на mkstemp. Например:
> 
> tmpfilename = tmpnam(0);
> ofstream file1.open( tmpfilename);
А в чём собственно проблема?
В Сизифе есть куча програм исправленных на предмет tmpnam.
> 
> ....
> 
> file1 << buffer;
> 
> ...
> 
> file1.close();
> 
> Есть и другие места, где имя временного файла используется в
> явном виде не только для открытия файла, но и как параметр в
> функции sprintf, например, т.е. чтобы это имя где-то напечатать.
> 
> Ни у кого нет идей, как такое переводить на mkstemp?
> 
> А можно такую программу в Daedalus или unsuported?
> 
> Заранее спасибо за помощь.
> 
> --
> Юрий А. Зотов
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@altlinux.ru
> http://altlinux.ru/mailman/listinfo/sisyphus


  reply	other threads:[~2003-05-29  7:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-26 19:46 [sisyphus] " Michael Shigorin
2003-05-26 19:58 ` Dmitry V. Levin
2003-05-26 20:10   ` Yura Zotov
2003-05-27  9:48   ` [sisyphus] " Michael Shigorin
2003-05-27 10:05     ` Dmitry V. Levin
2003-05-27 10:14       ` Yura Zotov
2003-05-27 10:28         ` Dmitry V. Levin
2003-05-27 10:57           ` Yura Zotov
2003-05-29  7:45             ` Stanislav Ievlev [this message]
2003-05-29  8:45               ` Yura Zotov
2003-05-29 12:45                 ` Stanislav Ievlev
2003-05-28 14:15       ` [sisyphus] u: xrcode-1.0-alt1, part II Michael Shigorin
2003-05-29  7:48         ` Stanislav Ievlev

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=20030529074522.GF23462@basalt.office.altlinux.org \
    --to=inger@altlinux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git