Hi all,
I’ve noticed this anomalous behavior with the ln command on LX zones. I don’t 
know which of the two behavior is compliant.


From a test GZ:
> > ssh coal
> Warning: Permanently added '10.99.99.7' (ECDSA) to the list of known hosts.
> - SmartOS (build: 20161113T161122Z)
> [root@headnode (dev) ~]# cd /tmp
> [root@headnode (dev) /tmp]# mkdir test && ln -s test dest
> [root@headnode (dev) /tmp]# ll
> total 16
> lrwxrwxrwx   1 root     root           4 nov 17 13:29 dest -> test/
> -rw-r--r--   1 root     root           0 nov 17 07:17 iconf_entries.2811
> drwxr-xr-x   2 root     root         117 nov 17 13:29 test/


Via zlogin (same with, say, docker exec):
> [root@headnode (dev) /tmp]# zlogin c6a989d2-717d-43d6-bf66-ac8a9b8bb7b6
> [Connected to zone 'c6a989d2-717d-43d6-bf66-ac8a9b8bb7b6' pts/4]
> Last login: Wed Nov 16 11:14:21 UTC 2016 from localhost on pts/5
> root@c6a989d2717d:~# cd /tmp
> root@c6a989d2717d:/tmp# mkdir test && ln -s test dest
> root@c6a989d2717d:/tmp# ll
> total 43991
> drwxrwxrwt  8 root    root          28 Nov 17 13:30 ./
> drwxr-xr-x 26 root    uucp          30 Nov 16 15:17 ../
> lrwxrwxrwx  1 root    root           4 Nov 17 13:30 dest -> test/
> drwxr-xr-x  2 root    root           2 Nov 17 13:30 test/
> 



Here’s the same version of Ubuntu (running on VirtualBox)
> root@dev/tmp > mkdir test && ln -s test dest
> root@dev/tmp > ll
> total 52K
> drwxr-xr-x 25 root    root    4.0K Nov 16 11:02 ..
> drwxr-xr-x  2 root    root    4.0K Nov 17 14:38 test
> lrwxrwxrwx  1 root    root       4 Nov 17 14:38 dest -> test
> drwxrwxrwt  8 root    root     12K Nov 17 14:38 .




--
Giorgio Valoti



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to