* ext/etc/etc.c (etc_getlogin): update documentation to note
security issue. [ruby-Bugs-11821] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3ca07d8718
commit
fd618e2234
@ -1,3 +1,8 @@
|
|||||||
|
Mon Aug 27 19:10:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/etc/etc.c (etc_getlogin): update documentation to note
|
||||||
|
security issue. [ruby-Bugs-11821]
|
||||||
|
|
||||||
Mon Aug 27 15:56:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Aug 27 15:56:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (sym_encoding): return the encoding of a Symbol.
|
* string.c (sym_encoding): return the encoding of a Symbol.
|
||||||
|
@ -35,6 +35,8 @@ char *getenv();
|
|||||||
char *getlogin();
|
char *getlogin();
|
||||||
|
|
||||||
/* Returns the short user name of the currently logged in user.
|
/* Returns the short user name of the currently logged in user.
|
||||||
|
* Unfortunately, it is often rather easy to fool getlogin().
|
||||||
|
* Avoid getlogin() for security-related purposes.
|
||||||
*
|
*
|
||||||
* e.g.
|
* e.g.
|
||||||
* Etc.getlogin -> 'guest'
|
* Etc.getlogin -> 'guest'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user