[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34388] stat("file") incorrect for symlinks
From: |
Muhali |
Subject: |
[Octave-bug-tracker] [bug #34388] stat("file") incorrect for symlinks |
Date: |
Mon, 26 Sep 2011 16:42:39 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 |
URL:
<http://savannah.gnu.org/bugs/?34388>
Summary: stat("file") incorrect for symlinks
Project: GNU Octave
Submitted by: muhali
Submitted on: Mon 26 Sep 2011 09:42:39 AM PDT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
for symlinks, e.g. pointing to a file "foo"
> symlink([err msg] = symlink("foo", "goo") ;
the modestr element returned from stat is incorrect:
> stat("goo").modestr
ans = -rw-r--r--
According to help,
`modestr' - File mode, as a string of ten letters or dashes as would be
returned by `ls -l'.
but
> ls -l goo
lrwxrwxrwx 1 user user 3 Sep 26 09:26 goo -> foo
M.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34388>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34388] stat("file") incorrect for symlinks,
Muhali <=