adduser fails if /etc/skel contains symlink starting with a dot
Bug #31553 reported by
Sascha Silbe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
adduser (Ubuntu) |
Fix Released
|
Medium
|
Matthias Klose |
Bug Description
If /etc/skel contains a SymLink starting with a dot, adduser fails:
root@caravan:~# ln -s /etc/syslog.conf /etc/skel/.foo
root@caravan:~# adduser test
Adding user `test'...
Adding new user `test' (1000) with group `users'.
Creating home directory `/home/test'.
Copying files from `/etc/skel'
symlink: Bad file descriptor
Cleaning up.
Removing directory `/home/test'
Removing user `test'.
root@caravan:~#
On Debian, this works fine.
To post a comment you must log in.
Thanks for your bug. What version of Ubuntu do you use? What version of the adduser package of both distributions? Ubuntu doesn't change that package so there is no reason to have it working on Debian and not Ubuntu