Skip to content

Commit 32c5694

Browse files
committed
Corrected octal/decimal handling
1 parent fe8f346 commit 32c5694

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) + 200))
772+
File.chmod(path, (elem(file_info, 7) + 0200))
773773
end
774774
{:error, reason} -> {:error, reason}
775775
end

0 commit comments

Comments
 (0)