ruby-changes:71741
From: Nobuyoshi <ko1@a...>
Date: Fri, 15 Apr 2022 17:52:28 +0900 (JST)
Subject: [ruby-changes:71741] 7f81f33547 (master): Return `false` where sticky-bit is not provided [Bug #18734]
https://git.ruby-lang.org/ruby.git/commit/?id=7f81f33547 From 7f81f335478a3ca873f34e3bc0af6927819d3e84 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 15 Apr 2022 16:40:25 +0900 Subject: Return `false` where sticky-bit is not provided [Bug #18734] --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index bf854d4df0..5b7f96c6fe 100644 --- a/file.c +++ b/file.c @@ -2144,7 +2144,7 @@ rb_file_sticky_p(VALUE obj, VALUE fname) https://github.com/ruby/ruby/blob/trunk/file.c#L2144 #ifdef S_ISVTX return check3rdbyte(fname, S_ISVTX); #else - return Qnil; + return Qfalse; #endif } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/