[#25976] tnono dumps core — nobu@...

なかだです。

16 messages 2005/04/02
[#25977] Re: tnono dumps core — Masaki Suketa <masaki.suketa@...> 2005/04/03

助田です。

[#25998] ruby 1.8.3 preview予定 — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

45 messages 2005/04/07
[#26011] bcc32、win32 での install-doc の動作 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/04/10

山本です。

[#26012] Re: bcc32、win32 での install-doc の動作 — nobu@... 2005/04/10

なかだです。

[#26013] Re: bcc32、win32 での install-doc の動作 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/04/11

山本です。

[#26014] Re: bcc32、win32 での install-doc の動作 — "U.Nakamura" <usa@...> 2005/04/11

こんにちは、なかむら(う)です。

[#26034] Re: bcc32、win32 での install-doc の動作 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/04/12

山本です。

[#26035] Re: bcc32、win32 での install-doc の動作 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/04/12

山本です。

[#26036] Re: bcc32、win32 での install-doc の動作 — "U.Nakamura" <usa@...> 2005/04/12

こんにちは、なかむら(う)です。

[#26040] Re: bcc32、win32 での install-doc の動作 — nobu@... 2005/04/13

なかだです。

[#26041] Re: bcc32、win32 での install-doc の動作 — "U.Nakamura" <usa@...> 2005/04/13

こんにちは、なかむら(う)です。

[#26042] Re: bcc32、win32 での install-doc の動作 — nobu@... 2005/04/13

なかだです。

[#26043] Re: bcc32、win32 での install-doc の動作 — "U.Nakamura" <usa@...> 2005/04/13

こんにちは、なかむら(う)です。

[#26045] Re: bcc32、win32 での install-doc の動作 — nobu@... 2005/04/13

なかだです。

[#26049] Re: bcc32、win32 での install-doc の動作 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/04/14

山本です。

[#26051] Re: bcc32、win32 での install-doc の動作 — nobu@... 2005/04/14

なかだです。

[#26059] Re: bcc32、win32 での install-doc の動作 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/04/14

山本です。

[#26060] Re: bcc32、win32 での install-doc の動作 — nobu@... 2005/04/15

なかだです。

[#26100] FileUtils.rm_rf security problem — Tanaka Akira <akr@...17n.org>

ふと、CVE で perl 関係のを見ていたら、File::Path の rmtree に関するも

21 messages 2005/04/26
[#26102] Re: FileUtils.rm_rf security problem — Tanaka Akira <akr@...17n.org> 2005/04/26

[#26190] Re: FileUtils.rm_rf security problem — Minero Aoki <aamine@...> 2005/05/20

青木です。

[#26191] Re: FileUtils.rm_rf security problem — Tanaka Akira <akr@...17n.org> 2005/05/20

In article <20050520171837N.aamine@loveruby.net>,

[#26192] Re: FileUtils.rm_rf security problem — Minero Aoki <aamine@...> 2005/05/20

青木です。

[#26197] Re: FileUtils.rm_rf security problem — Minero Aoki <aamine@...> 2005/05/21

青木です。

[ruby-dev:26098] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIGbindings

From: "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date: 2005-04-23 13:42:33 UTC
List: ruby-dev #26098
山本です。

>#defineならまだ#ifdefでチェックできますが、typedefだとどうし
>ようもないので、よりたちが悪いと思います。

なるほど、確かにそうですね。

>aprとrubyですりあわせるか、SWIGで対応するか、しかないと思うの
>ですが、[ruby-core:4750]でSWIG側へのパッチが出てるので、あれ
>で解決なのではないでしょうか。

[ruby-core:4755] で

>No, because gid_t an uid_t are defined (conditionally on WIN32) in
>config.h instead of in win32/win32.h.

ということらしいので、こうするといいんでしょうか。でも configure でも
定義されてるんですよね・・・

# なかむら(う)さんが watch なさっていることがわかったので、
# 後はおまかせします。

Index: win32/Makefile.sub
===================================================================
RCS file: /src/ruby/win32/Makefile.sub,v
retrieving revision 1.91
diff -u -w -b -p -r1.91 Makefile.sub
--- win32/Makefile.sub	20 Apr 2005 21:45:42 -0000	1.91
+++ win32/Makefile.sub	23 Apr 2005 13:09:35 -0000
@@ -222,8 +222,6 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/
 #define HAVE_FCNTL_H 1
 #define HAVE_SYS_UTIME_H 1
 #define HAVE_FLOAT_H 1
-#define uid_t int
-#define gid_t int
 #define HAVE_STRUCT_STAT_ST_RDEV 1
 #define HAVE_ST_RDEV 1
 #define GETGROUPS_T int
Index: win32/win32.c
===================================================================
RCS file: /src/ruby/win32/win32.c,v
retrieving revision 1.147
diff -u -w -b -p -r1.147 win32.c
--- win32/win32.c	5 Mar 2005 09:30:24 -0000	1.147
+++ win32/win32.c	23 Apr 2005 13:23:31 -0000
@@ -1772,38 +1772,38 @@ rb_w32_strerror(int e)
 #define ROOT_UID	0
 #define ROOT_GID	0
 
-UIDTYPE
+uid_t
 getuid(void)
 {
 	return ROOT_UID;
 }
 
-UIDTYPE
+uid_t
 geteuid(void)
 {
 	return ROOT_UID;
 }
 
-GIDTYPE
+gid_t
 getgid(void)
 {
 	return ROOT_GID;
 }
 
-GIDTYPE
+gid_t
 getegid(void)
 {
     return ROOT_GID;
 }
 
 int
-setuid(int uid)
+setuid(uid_t uid)
 { 
     return (uid == ROOT_UID ? 0 : -1);
 }
 
 int
-setgid(int gid)
+setgid(gid_t gid)
 {
     return (gid == ROOT_GID ? 0 : -1);
 }
Index: win32/win32.h
===================================================================
RCS file: /src/ruby/win32/win32.h,v
retrieving revision 1.62
diff -u -w -b -p -r1.62 win32.h
--- win32/win32.h	10 Feb 2005 04:55:34 -0000	1.62
+++ win32/win32.h	23 Apr 2005 13:24:58 -0000
@@ -69,9 +69,9 @@ extern "C++" {
 }
 #endif
 
-#define UIDTYPE int
-#define GIDTYPE int
 #define pid_t   int
+#define uid_t   int
+#define gid_t   int
 #define WNOHANG -1
 
 #undef getc
@@ -271,12 +271,12 @@ extern FILE *rb_w32_fsopen(const char *,
 // stubs
 //
 extern int       ioctl (int, int, ...);
-extern UIDTYPE   getuid (void);
-extern UIDTYPE   geteuid (void);
-extern GIDTYPE   getgid (void);
-extern GIDTYPE   getegid (void);
-extern int       setuid (int);
-extern int       setgid (int);
+extern uid_t     getuid (void);
+extern uid_t     geteuid (void);
+extern gid_t     getgid (void);
+extern gid_t     getegid (void);
+extern int       setuid (uid_t);
+extern int       setgid (gid_t);
 
 extern char *rb_w32_strerror(int);
 
Index: wince/Makefile.sub
===================================================================
RCS file: /src/ruby/wince/Makefile.sub,v
retrieving revision 1.36
diff -u -w -b -p -r1.36 Makefile.sub
--- wince/Makefile.sub	20 Apr 2005 21:45:43 -0000	1.36
+++ wince/Makefile.sub	23 Apr 2005 13:09:24 -0000
@@ -227,8 +227,6 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/wince/
 #define HAVE_FCNTL_H 1
 #define HAVE_SYS_UTIME_H 1
 #define HAVE_FLOAT_H 1
-#define uid_t int
-#define gid_t int
 #define HAVE_STRUCT_STAT_ST_RDEV 1
 #define HAVE_ST_RDEV 1
 #define GETGROUPS_T int


In This Thread