Skip to content

Commit 8941d28

Browse files
committed
chmod does not require conversion of bases
1 parent 5cc2724 commit 8941d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/file.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ defmodule File do
769769
case F.read_file_info(IO.chardata_to_string(path)) do
770770
{:ok, file_info} ->
771771
if elem(file_info, 3) in [:read, :none] do
772-
File.chmod(path, (elem(file_info, 7) + 128)) # 128 is octal mask 200 in decimal
772+
File.chmod(path, (elem(file_info, 7) + 200))
773773
end
774774
{:error, reason} -> {:error, reason}
775775
end

0 commit comments

Comments
 (0)