Bug 10251

Summary: ltsp-update-sshkeys doesn't update ssh_known_hosts on symlinked /opt/ltsp
Product: LTSP Reporter: alban <alban.bernard>
Component: InstallerAssignee: Jim McQuillan <jam>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: low Keywords: janitor
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description alban 2007-03-11 07:35:15 UTC
Hi,

When you customize ltsp by symlinking /opt/ltsp to another dir (i.e. ln -s /srv/ltsp /opt/ltsp), the command ltsp-update-sshkeys doesn't find arch root directories.

As administrator would potentially change ltsp root directory by using symbolic links, I think that a good practice would be to terminate all searched directories in find command by a "/" to be sure it will follows symlinks (the patch below).

diff /usr/sbin/ltsp-update-sshkeys ltsp-update-sshkeys
3c3
< clients=$(find /opt/ltsp -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
---
> clients=$(find /opt/ltsp/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n')

Regards.

Alban.
Comment 1 Jim McQuillan 2007-03-11 11:19:39 UTC
I fixed this bug, by adding a '/' to the end of the directory that is being searched in the "find" command.  The new version is now available on the LTSP download page.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.