~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to version.c

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2005-09-21 13:16:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050921131619-qhlm5e5pz3bvsh2g
Tags: 1.9.0+20050921-1
* akira yamada <akira@debian.org>
- new upstream snapshot. (2005-09-21)
    - [security] JVN#62914675 CVE-2005-2337
        - preserve safe level in the environment where a method is defined.
        - prohibit calling tainted method (>2) when $SAFE == 0.
- removed debian/patches/802_workaround_for_send.dpatch:
    - the patch is in upstream.
- debian/control: build-depends on libreadline5-dev.  (closes: #326333)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  version.c -
4
4
 
5
 
  $Author: nobu $
6
 
  $Date: 2005/05/12 00:54:07 $
 
5
  $Author: ocean $
 
6
  $Date: 2005/09/12 10:44:21 $
7
7
  created at: Thu Sep 30 20:08:01 JST 1993
8
8
 
9
9
  Copyright (C) 1993-2003 Yukihiro Matsumoto
19
19
const char ruby_platform[] = RUBY_PLATFORM;
20
20
 
21
21
void
22
 
Init_version()
 
22
Init_version(void)
23
23
{
24
24
    VALUE v = rb_obj_freeze(rb_str_new2(ruby_version));
25
25
    VALUE d = rb_obj_freeze(rb_str_new2(ruby_release_date));
31
31
}
32
32
 
33
33
void
34
 
ruby_show_version()
 
34
ruby_show_version(void)
35
35
{
36
36
    printf("ruby %s (%s) [%s]\n", RUBY_VERSION, RUBY_RELEASE_DATE, RUBY_PLATFORM);
37
37
    fflush(stdout);
38
38
}
39
39
 
40
40
void
41
 
ruby_show_copyright()
 
41
ruby_show_copyright(void)
42
42
{
43
43
    printf("ruby - Copyright (C) 1993-%d Yukihiro Matsumoto\n", RUBY_RELEASE_YEAR);
44
44
    exit(0);