mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (rb_stat_uid, rb_stat_gid, eaccess): use rb_uid_t and
rb_gid_t instead of int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b7ecc68a9
commit
7b0f246345
2 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,7 @@
|
|||
Sun Mar 4 23:38:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sun Mar 4 23:41:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rb_stat_uid, rb_stat_gid, eaccess): use rb_uid_t and
|
||||
rb_gid_t instead of int.
|
||||
|
||||
* file.c (rb_stat_s_utime): fixed a commit miss for the platforms
|
||||
where utimes() does not exist.
|
||||
|
|
6
file.c
6
file.c
|
@ -351,7 +351,7 @@ rb_stat_nlink(VALUE self)
|
|||
static VALUE
|
||||
rb_stat_uid(VALUE self)
|
||||
{
|
||||
return UINT2NUM(get_stat(self)->st_uid);
|
||||
return UIDT2NUM(get_stat(self)->st_uid);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -367,7 +367,7 @@ rb_stat_uid(VALUE self)
|
|||
static VALUE
|
||||
rb_stat_gid(VALUE self)
|
||||
{
|
||||
return UINT2NUM(get_stat(self)->st_gid);
|
||||
return GIDT2NUM(get_stat(self)->st_gid);
|
||||
}
|
||||
|
||||
|
||||
|
@ -828,7 +828,7 @@ eaccess(const char *path, int mode)
|
|||
{
|
||||
#ifdef USE_GETEUID
|
||||
struct stat st;
|
||||
int euid;
|
||||
rb_uid_t euid;
|
||||
|
||||
if (stat(path, &st) < 0) return -1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue