[#8478] resolv.rb -- doc patch. — Hugh Sasse <hgs@...>
This is an attempt to get the RD format docs for resolv.rb into
[#8484] strptime fails to properly parse certain inputs — <noreply@...>
Bugs item #5263, was opened at 2006-08-01 23:14
Hi,
Hi,
nobu@ruby-lang.org wrote:
Why bother other languages? They are on their own. We should not
[#8497] Ruby Socket to support SCTP? — Philippe Langlois <philippelanglois@...>
Hi,
[#8504] TCPSocket: bind method missing — hadmut@... (Hadmut Danisch)
Hi,
[#8513] patches for the 1.8.5 deadline... — Hugh Sasse <hgs@...>
As far as I can tell the only patches which I've submitted which
On Aug 3, 2006, at 10:20 AM, Hugh Sasse wrote:
On Fri, 4 Aug 2006, Eric Hodel wrote:
[#8522] IRB change for RDoc workaround — Eric Hodel <drbrain@...7.net>
RDoc chokes on the following code:
[#8525] rdoc bug? — Steven Jenkins <steven.jenkins@...>
I think I've found a bug in rdoc's handling of C files. Specifically, it
[#8555] Process.gid= fails on OS X — <noreply@...>
Bugs item #5351, was opened at 2006-08-08 01:56
>>>>> On Tue, 8 Aug 2006 17:56:07 +0900
Hi,
Hi,
>>>>> On Wed, 9 Aug 2006 12:31:07 +0900
Hi,
[#8561] sandbox timers & block scopes — why the lucky stiff <ruby-core@...>
Two puzzles I am trying to solve:
On 8/8/06, why the lucky stiff <ruby-core@whytheluckystiff.net> wrote:
On 8/16/06, Francis Cianfrocca <garbagecat10@gmail.com> wrote:
raise ThisDecayingInquisition, "anyone? anyone at all?"
On Wed, 2006-08-16 at 00:35 +0900, why the lucky stiff wrote:
On Wed, Aug 16, 2006 at 02:46:30AM +0900, MenTaLguY wrote:
On 8/15/06, why the lucky stiff <ruby-core@whytheluckystiff.net> wrote:
On 8/15/06, Charles O Nutter <headius@headius.com> wrote:
On Wed, Aug 16, 2006 at 04:14:33AM +0900, Charles O Nutter wrote:
On 8/15/06, why the lucky stiff <ruby-core@whytheluckystiff.net> wrote:
Hi,
[#8568] Pathname.to_a — Marc Haisenko <haisenko@...>
Hi folks,
[#8585] RDoc: extensions spread across multiple C files — Tilman Sauerbeck <tilman@...>
Hi,
Tilman Sauerbeck [2006-08-11 00:39]:
[#8593] ri problem with the latest ruby_1_8 — "Kent Sibilev" <ksruby@...>
Does anyone know why for some strange reason ri doesn't know about any
On Aug 11, 2006, at 10:55 AM, Kent Sibilev wrote:
[#8608] Another ri problem (ruby_1_8 branch) — "Kent Sibilev" <ksruby@...>
I've noticed that many builtin Ruby classes don't have descriptions:
On Aug 12, 2006, at 11:45 PM, Kent Sibilev wrote:
On 8/15/06, Eric Hodel <drbrain@segment7.net> wrote:
[#8609] Again Range=== bug — Ondrej Bilka <neleai@...>
Problem of discrete membership at Range#=== is that it returns unexpected
[#8616] invalid test in "sudo make install-doc"? — <noreply@...>
Bugs item #5415, was opened at 2006-08-14 12:01
[#8662] NODE_WHEN inside a case else body — "Dominik Bathon" <dbatml@...>
Hi,
[#8690] a ruby-core primer — why the lucky stiff <ruby-core@...>
Hello, all. I've been working on the ruby-core page for the new Ruby site.
On 8/22/06, why the lucky stiff <ruby-core@whytheluckystiff.net> wrote:
On 8/24/06, Dave Howell <groups+2006@howell.seattle.wa.us> wrote:
[#8709] More ri-problems (ruby_1_8 branch again) — Johan Holmberg <holmberg@...>
Hi!
[#8735] Legal operator symbols — "Nikolai Weibull" <now@...>
Why are :>, :>=, :<=, :< fine as symbols, while := isn't?
Hi --
[#8758] sandbox r50, here we go, loading conflicting gems — why the lucky stiff <ruby-core@...>
Checky.
Re: [ ruby-Bugs-5351 ] Process.gid= fails on OS X
>>>>> On Wed, 9 Aug 2006 12:31:07 +0900
>>>>> nobu@ruby-lang.org said:
>
> > -#elif defined HAVE_SETREUID
> > +#elif defined(HAVE_SETREUID) && !defined(OBSOLETE_SETREUID)
>
> They all should be BROKEN_SETREUID, but not OBSOLETE_SETREUID,
> sorry.
I tried patch with debug print, s/OBSOLETE_SETREUID/BROKEN_SETREUID/g,
s/OBSOLETE_SETREUID/BROKEN_SETREUID/g and s/GIDTYPE/rb_gid_t/,
but failed yet.
Mac-mini:~ kazu$ sudo ~/opt/ruby18/bin/ruby -ve 'Process.gid=502'
ruby 1.8.5 (2006-08-09) [powerpc-darwin8.7.0]
/Users/kazu/wc/ruby-lang/ruby_1_8/process.c:2494
/Users/kazu/wc/ruby-lang/ruby_1_8/process.c:2503
-e:1:in `gid=': Operation not permitted (Errno::EPERM)
from -e:1
Mac-mini:~ kazu$
Index: process.c
===================================================================
RCS file: /src/ruby/process.c,v
retrieving revision 1.92.2.33
diff -u -p -r1.92.2.33 process.c
--- process.c 25 Jul 2006 04:58:15 -0000 1.92.2.33
+++ process.c 10 Aug 2006 17:09:15 -0000
@@ -2122,7 +2122,7 @@ proc_setuid(obj, id)
check_uid_switch();
#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
if (setresuid(uid, -1, -1) < 0) rb_sys_fail(0);
-#elif defined HAVE_SETREUID
+#elif defined(HAVE_SETREUID) && !defined(BROKEN_SETREUID)
if (setreuid(uid, -1) < 0) rb_sys_fail(0);
#elif defined HAVE_SETRUID
if (setruid(uid) < 0) rb_sys_fail(0);
@@ -2491,14 +2491,19 @@ proc_setgid(obj, id)
{
int gid = NUM2INT(id);
+printf("%s:%d\n", __FILE__, __LINE__);
check_gid_switch();
#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
+printf("%s:%d\n", __FILE__, __LINE__);
if (setresgid(gid, -1, -1) < 0) rb_sys_fail(0);
-#elif defined HAVE_SETREGID
+#elif defined(HAVE_SETREGID) && !defined(BROKEN_SETREGID)
+printf("%s:%d\n", __FILE__, __LINE__);
if (setregid(gid, -1) < 0) rb_sys_fail(0);
#elif defined HAVE_SETRGID
- if (setrgid((GIDTYPE)gid) < 0) rb_sys_fail(0);
+printf("%s:%d\n", __FILE__, __LINE__);
+ if (setrgid((rb_gid_t)gid) < 0) rb_sys_fail(0);
#elif defined HAVE_SETGID
+printf("%s:%d\n", __FILE__, __LINE__);
{
if (getegid() == gid) {
if (setgid(gid) < 0) rb_sys_fail(0);
@@ -2508,8 +2513,10 @@ proc_setgid(obj, id)
}
}
#else
+printf("%s:%d\n", __FILE__, __LINE__);
rb_notimplement();
#endif
+printf("%s:%d\n", __FILE__, __LINE__);
return INT2FIX(gid);
}
@@ -2894,7 +2901,7 @@ proc_seteuid(obj, euid)
check_uid_switch();
#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
if (setresuid(-1, NUM2INT(euid), -1) < 0) rb_sys_fail(0);
-#elif defined HAVE_SETREUID
+#elif defined(HAVE_SETREUID) && !defined(BROKEN_SETREUID)
if (setreuid(-1, NUM2INT(euid)) < 0) rb_sys_fail(0);
#elif defined HAVE_SETEUID
if (seteuid(NUM2INT(euid)) < 0) rb_sys_fail(0);
@@ -3008,7 +3015,7 @@ proc_setegid(obj, egid)
#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
if (setresgid(-1, NUM2INT(egid), -1) < 0) rb_sys_fail(0);
-#elif defined HAVE_SETREGID
+#elif defined(HAVE_SETREGID) && !defined(BROKEN_SETREGID)
if (setregid(-1, NUM2INT(egid)) < 0) rb_sys_fail(0);
#elif defined HAVE_SETEGID
if (setegid(NUM2INT(egid)) < 0) rb_sys_fail(0);
Mac-mini:~ kazu$ cat setrgid-test.c
#include <stdio.h>
#include <unistd.h>
int main() {
printf("%d\n", getgid());
printf("%d\n", setrgid(0));
perror("setrgid(0)");
printf("%d\n", getgid());
printf("%d\n", setrgid(502));
perror("setrgid(502)");
printf("%d\n", getgid());
return 0;
}
Mac-mini:~ kazu$ gcc setrgid-test.c
Mac-mini:~ kazu$ sudo ./a.out
0
0
setrgid(0): Unknown error: 0
0
-1
setrgid(502): Operation not permitted
0
Mac-mini:~ kazu$
--
|ZnZ
|Kazuhiro NISHIYAMA