[Adduser-devel] Bug#299050: adduser: fails on copying symlinks from /etc/skel

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 299050@bugs.debian.org
Fri, 11 Mar 2005 14:16:13 +0100


tags #299050 unreproducible
thanks

On Fri, Mar 11, 2005 at 01:33:55PM +0100, Hans-Peter Doerr wrote:
> adduser fails to copy symlinks in subdirs of /etc/skel
> 
> # ls -l /etc/skel/subdir/
> total 0
> lrwxrwxrwx  1 root root 9 Mar 11 13:17 link-to-file -> /etc/file
> 
> # adduser --home /home/test99 --shell /bin/bash --ingroup users \
>   --disabled-password --gecos "bla,,," test99
> Adding user `test99'...
> Adding new user `test99' (3277) with group `users'.
> Creating home directory `/home/test99'.
> Copying files from `/etc/skel'
> Use of uninitialized value in symlink at /usr/sbin/adduser line 695,
> <FIND> line 190.
> symlink: No such file or directory
> Cleaning up.

Bad.

However, I cannot reproduce this here:
[22/22]mh@lefler[chroot sid]:~$ ls -l /etc/skel/subdir/
total 0
lrwxrwxrwx  1 root root 10 Mar 11 13:13 link-to-file -> /etc/fstab
[23/23]mh@lefler[chroot sid]:~$ sudo adduser --home /home/test99 --shell /bin/bash --ingroup users --disabled-password --gecos "bla,,," test99
Adding user test99'...
Adding new user test99' (1003) with group users'.
Creating home directory /home/test99'.
Copying files from /etc/skel'
[24/24]mh@lefler[chroot sid]:~$ ls -l /home/test99/subdir/
total 8.0K
lrwxrwxrwx  1 test99 users   10 Mar 11 13:14 link-to-file -> /etc/fstab
[25/25]mh@lefler[chroot sid]:~$

Can you give more information?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835