[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] touching symbolic links



Am 31.05.2014, 13:55 Uhr, schrieb Helmut Karlowski:

- FreeMiNT on hostfs (with latest ARAnyM GIT): *does* touch the target (right behaviour?)

So regarding this MiNT should be changed not hostfs.

Ok, it works now for me on all filesystems (~10 new lines in dosdir.c) regardless of aranym:

PWD:/v/tmp
lrwxrwxrwx    1 1004     513             1 May 31 23:01 xz -> z
-rw-rw-rw-    1 1004     513             0 Jun  6  2010 z
-rw-rw-rw-    1 1004     513             0 Jun  6  2010 xz
-rw-rw-rw-    1 1004     513             0 Jun  6  2010 z
touch xz
lrwxrwxrwx    1 1004     513             1 May 31 23:01 xz -> z
-rw-rw-rw-    1 1004     513             0 May 31 21:01 z
-rw-rw-rw-    1 1004     513             0 May 31 21:01 xz
-rw-rw-rw-    1 1004     513             0 May 31 21:01 z
PWD:/e
lrwxrwxrwx    1 root     wheel           4 May 31 23:01 xz -> z
-rw-------    1 root     wheel           0 Jun  6  2010 z
-rw-------    1 root     wheel           0 Jun  6  2010 xz
-rw-------    1 root     wheel           0 Jun  6  2010 z
touch xz
lrwxrwxrwx    1 root     wheel           4 May 31 23:01 xz -> z
-rw-------    1 root     wheel           0 May 31 23:01 z
-rw-------    1 root     wheel           0 May 31 23:01 xz
-rw-------    1 root     wheel           0 May 31 23:01 z
PWD:/r
l---------    1 root     wheel           0 May 31 23:01 xz -> z
-rw-rw-rw-    1 root     wheel           0 Jun  6  2010 z
-rw-rw-rw-    1 root     wheel           0 Jun  6  2010 xz
-rw-rw-rw-    1 root     wheel           0 Jun  6  2010 z
touch xz
l---------    1 root     wheel           0 May 31 23:01 xz -> z
-rw-rw-rw-    1 root     wheel           0 May 31 23:01 z
-rw-rw-rw-    1 root     wheel           0 May 31 23:01 xz
-rw-rw-rw-    1 root     wheel           0 May 31 23:01 z
PWD:/tmp
lrwxrwxrwx    1 root     wheel           1 May 31 23:01 xz -> z
-rw-rw-rw-    1 root     wheel           0 Jun  6  2010 z
-rw-rw-rw-    1 root     wheel           0 Jun  6  2010 xz
-rw-rw-rw-    1 root     wheel           0 Jun  6  2010 z
touch xz
lrwxrwxrwx    1 root     wheel           1 May 31 23:01 xz -> z
-rw-rw-rw-    1 root     wheel           0 May 31 23:01 z
-rw-rw-rw-    1 root     wheel           0 May 31 23:01 xz
-rw-rw-rw-    1 root     wheel           0 May 31 23:01 z

The access-rights for the symlink on ramfs (/r) should be lrwxrwxrwx, not l---------, don't know if that is significant.

Also don't know about chmod, chown, etc.


-Helmut

--