Anyone know what the extra . (dot) in the permissions field is in the output of ls -la in FC11 ?
A permissions field is normally 10 bytes, whats with the dot, a man an info on ls caused nothing obvious to jump out at me.
A eleven byte perm field now with a trailing dot insead of the normal ten byte field
[root@osprey mark]# uname -a
Linux osprey 2.6.29.5-191.fc11.i686.PAE #1 SMP Tue Jun 16 23:19:53 EDT 2009 i686 i686 i386 GNU/Linux
[root@osprey mark]# ls -la /
total 110
drwxr-xr-x. 23 root root 4096 2009-07-17 20:56 .
drwxr-xr-x. 23 root root 4096 2009-07-17 20:56 ..
-rw-r--r--. 1 root root 0 2009-07-17 20:56 .autofsck
drwxr-xr-x. 2 root root 4096 2009-07-04 03:30 bin
drwxr-xr-x. 5 root root 1024 2009-07-02 15:27 boot
drwxr-xr-x. 3 root root 4096 2009-06-21 11:19 databases
drwxr-xr-x. 17 root root 3900 2009-07-19 03:24 dev
drwxr-xr-x. 124 root root 12288 2009-07-19 10:52 etc
That extra dot doesn't exist in FC10 or earlier (or solaris, or aix, or ...)
[mark@falcon asm370]$ uname -a
Linux falcon 2.6.27.21-170.2.56.fc10.i686 #1 SMP Mon Mar 23 23:37:54 EDT 2009 i686 i686 i386 GNU/Linux
[mark@falcon asm370]$ ls -la /
total 122
drwxr-xr-x 22 root root 4096 2009-07-17 17:32 .
drwxr-xr-x 22 root root 4096 2009-07-17 17:32 ..
-rw-r--r-- 1 root root 0 2009-07-17 17:32 .autofsck
drwxr-xr-x 2 root root 4096 2009-05-25 04:42 bin
drwxr-xr-x 5 root root 1024 2009-04-19 12:12 boot
drwx------ 3 root root 4096 2008-12-28 07:40 .dbus
drwxr-xr-x 15 root root 4800 2009-07-19 04:30 dev
drwxr-xr-x 134 root root 12288 2009-07-18 04:33 etc
It broke the version of WinSCP I was using... I was on winscp version 3.6.7 which couldn't handle the extra dot, but an upgrade to the latest version 4.2.2 beta handles it ok.
Just wondering what the extra dot was for, if winscp was updated to handle it I assume it's not going away (even if other *nix flavours like aix and solaris don't have it).
My first thought was it was an ext4 thing, but the ext3 boot slice has the trailing dot as well.
I did check the man page and "info coreutils 'ls invocation'" as suggested by the man page, but there was no dot in the examples from the ls command there either.
So out of curiosity, whats it for (apart from also breaking lots of my scripts, which quite honestly I can do on my own without strange changes like this)
If it is supposed to be there can I actually use it to tell me anything ?


Reply With Quote
