Gentoo Archives: gentoo-commits

From: "Charlie Shepherd (masterdriverz)" <masterdriverz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/rdist/files: rdist-6.1.5-mkstemp.patch digest-rdist-6.1.5-r2
Date: Sun, 04 Nov 2007 15:04:13
Message-Id: E1IogpM-00025B-3V@stork.gentoo.org
1 masterdriverz 07/11/04 14:51:52
2
3 Added: rdist-6.1.5-mkstemp.patch digest-rdist-6.1.5-r2
4 Log:
5 Add patch from splite to fix Bug 66774. The patch makes ssh the default transport if the "crypt" flag is used. It also fixes the yacc grammer so that bison can again be used. It changes the output format of the noexec option. Finally, it installs the files as group root instead of bin and man.
6 (Portage version: 2.1.3.16)
7
8 Revision Changes Path
9 1.1 net-misc/rdist/files/rdist-6.1.5-mkstemp.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/rdist/files/rdist-6.1.5-mkstemp.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/rdist/files/rdist-6.1.5-mkstemp.patch?rev=1.1&content-type=text/plain
13
14 Index: rdist-6.1.5-mkstemp.patch
15 ===================================================================
16 --- src/message.c.orig 1998-11-09 23:13:30.000000000 -0500
17 +++ src/message.c 2005-01-20 11:39:48.156866817 -0500
18 @@ -455,6 +455,8 @@
19 int flags;
20 char *msgbuf;
21 {
22 + int fd;
23 +
24 if (IS_ON(flags, MT_DEBUG))
25 return;
26
27 @@ -475,10 +477,12 @@
28 (void) sprintf(tempfile, "%s/%s", cp, _RDIST_TMP);
29
30 msgfac->mf_filename = tempfile;
31 - (void) mktemp(msgfac->mf_filename);
32 - if ((msgfac->mf_fptr = fopen(msgfac->mf_filename, "w"))==NULL)
33 + if ((fd = mkstemp(msgfac->mf_filename)) == -1)
34 fatalerr("Cannot open notify file for writing: %s: %s.",
35 msgfac->mf_filename, SYSERR);
36 + if ((msgfac->mf_fptr = fdopen(fd, "w")) == NULL)
37 + fatalerr("Cannot associate stream with file %s: %s.",
38 + msgfac->mf_filename, SYSERR);
39 debugmsg(DM_MISC, "Created notify temp file '%s'",
40 msgfac->mf_filename);
41 }
42
43
44
45 1.1 net-misc/rdist/files/digest-rdist-6.1.5-r2
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/rdist/files/digest-rdist-6.1.5-r2?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/rdist/files/digest-rdist-6.1.5-r2?rev=1.1&content-type=text/plain
49
50 Index: digest-rdist-6.1.5-r2
51 ===================================================================
52 MD5 546779700af70aa5f9103e08782cdcac rdist-6.1.5.tar.gz 117861
53 RMD160 7344e137ab74192aeb2517fd63b4bbed0f70e039 rdist-6.1.5.tar.gz 117861
54 SHA256 2bb0d0f5904eadc9e7fe3d60c15389d6897fcf884211070e289a6c710ff37f96 rdist-6.1.5.tar.gz 117861
55
56
57
58 --
59 gentoo-commits@g.o mailing list