For future reference, the Github issue is here 
<https://github.com/JuliaLang/julia/issues/7385>.

Davide

On Monday, June 23, 2014 6:35:32 PM UTC+1, Davide Lasagna wrote:
>
> Ok, 
>
> I will open an issue
>
> Davide
>
> On Monday, June 23, 2014 3:49:12 PM UTC+1, Isaiah wrote:
>>
>> The problem here is that the underlying ios implementation is only valid 
>> for files. Please open an issue.
>>
>> julia> iswritable("/foo")
>> false
>>
>>
>> On Mon, Jun 23, 2014 at 10:46 AM, Tomas Lycken <tomas....@gmail.com> 
>> wrote:
>>
>>> No, only that the *owner* has write permissions. The owner is `root`, 
>>> but the current user is `tlycken`, who *doesn't* have write permissions.
>>>
>>> // T
>>>
>>>
>>> On Monday, June 23, 2014 4:19:05 PM UTC+2, John Myles White wrote:
>>>
>>>> What’s dubious about it? Doesn’t the permission sequence shown 
>>>> demonstrate that the user has write permissions?
>>>>
>>>>  — John
>>>>
>>>> On Jun 23, 2014, at 7:17 AM, Tomas Lycken <tomas....@gmail.com> wrote:
>>>>
>>>> Seems dubious to me:
>>>>
>>>> julia> iswritable("/")
>>>> true
>>>>
>>>> shell> ls -la /
>>>> total 142
>>>> drwxr-xr-x  24 root root  4096 jun 11 09:16 .
>>>> shell> whoami
>>>> tlycken
>>>>
>>>> `tlycken` is a sudoer, but if I start the REPL as `sudo julia`, 
>>>> `;whoami` returns `root`, so I don't think that's the problem.
>>>>
>>>> // T
>>>>
>>>> On Monday, June 23, 2014 4:07:12 PM UTC+2, John Myles White wrote:
>>>>
>>>>
>>>> This seems hard to know without also seeing the output of `ls -l /`
>>>>>
>>>>>  — John
>>>>>
>>>>> On Jun 23, 2014, at 7:06 AM, Davide Lasagna <lasagn...@gmail.com> 
>>>>> wrote:
>>>>>
>>>>> Hi, 
>>>>>
>>>>> Is this a bug?
>>>>>
>>>>> julia> iswritable("/")
>>>>> true
>>>>>
>>>>> (running from repl as normal user)
>>>>>
>>>>> Davide
>>>>>
>>>>>
>>>>>
>>>>
>>>> ​
>>>>
>>>>
>>>>
>>

Reply via email to