Bug 10251 - ltsp-update-sshkeys doesn't update ssh_known_hosts on symlinked /opt/ltsp
Summary: ltsp-update-sshkeys doesn't update ssh_known_hosts on symlinked /opt/ltsp
Status: RESOLVED FIXED
Alias: None
Product: LTSP
Classification: Unclassified
Component: Installer (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: low minor
Assignee: Jim McQuillan
QA Contact:
URL:
Whiteboard:
Keywords: janitor
Depends on:
Blocks:
 
Reported: 2007-03-11 07:35 UTC by alban
Modified: 2007-03-11 11:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.