Univention Bugzilla – Bug 42493
univention-skel does not check if symlink already exists
Last modified: 2016-09-28 14:05:04 CEST
steps to reproduce: root@dc:~# ln -s /doesnotexist /etc/univention/skel/faultylink root@dc:~# univention-skel /etc/univention/skel create_link /root/faultylink root@dc:~# univention-skel /etc/univention/skel create_link /root/faultylink Traceback (most recent call last): File "/usr/bin/univention-skel", line 200, in <module> os.path.walk(userconfig_templates, install_files, (hstamps, istamps)) File "/usr/lib/python2.7/posixpath.py", line 238, in walk func(arg, top, names) File "/usr/bin/univention-skel", line 135, in install_files os.symlink(os.readlink(ifile), hfile) OSError: [Errno 17] File exists
Ticket#2016092321000532 will gain severity for the customer if not fixed in the intermediate-term.
fixed in univention-skel in errata4.1-3 univention-skel.yaml merged to 4.2-0
Tests: OK Advisory: OK Code review: OK Merge: OK
<https://errata.software-univention.de/ucs/4.1/281.html>