U
Une Bévue
if i use :
File.open('a_file',File::WRONLY|File::TRUNC|File::CREAT) do |f|
f.print 'something'
end
the 'a_file' i get has the following perms :
-rw-r--r--
which correspond to 644 (right?)
generally it's OK with those perms.
however if i rewrite the three lines above specifying the perms as 644 :
File.open('a_file',File::WRONLY|File::TRUNC|File::CREAT,644) do |f|
f.print 'something'
end
i get the following perms :
--w----r--
and then i can't do even a cat upon this file )))
is it my missunderstanding of File.open or a bugg ???
File.open('a_file',File::WRONLY|File::TRUNC|File::CREAT) do |f|
f.print 'something'
end
the 'a_file' i get has the following perms :
-rw-r--r--
which correspond to 644 (right?)
generally it's OK with those perms.
however if i rewrite the three lines above specifying the perms as 644 :
File.open('a_file',File::WRONLY|File::TRUNC|File::CREAT,644) do |f|
f.print 'something'
end
i get the following perms :
--w----r--
and then i can't do even a cat upon this file )))
is it my missunderstanding of File.open or a bugg ???