Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
cobbler
cobbler-symlink.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cobbler-symlink.diff of Package cobbler
Index: cobbler-2.6.6/cobbler/utils.py =================================================================== --- cobbler-2.6.6.orig/cobbler/utils.py +++ cobbler-2.6.6/cobbler/utils.py @@ -1102,6 +1102,9 @@ def is_safe_to_hardlink(src,dst,api): (dev2, path2) = get_file_device_path(dst) if dev1 != dev2: return False + # do not hardlink to a symbolic link; chances are high the new link will be dangling + if os.path.islink(src): + return False if dev1.find(":") != -1: # is remoted return False
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor