[Adduser-devel] r187 - in trunk: . debian
Marc Haber
zugschlus@costa.debian.org
Sat, 05 Feb 2005 12:47:09 +0100
Author: zugschlus
Date: 2005-02-05 12:47:08 +0100 (Sat, 05 Feb 2005)
New Revision: 187
Modified:
trunk/adduser
trunk/debian/changelog
Log:
+ * create /etc/skel symlinks with proper uid/gid. Thanks to Deepak
+ Goel. (mh) Closes: #268402.
Modified: trunk/adduser
===================================================================
--- trunk/adduser 2005-02-05 11:00:37 UTC (rev 186)
+++ trunk/adduser 2005-02-05 11:47:08 UTC (rev 187)
@@ -687,8 +687,14 @@
my($fromdir, $file, $todir, $newu, $newg, $sgiddir) = @_;
if (-l "$fromdir/$file") {
+ my $curgid="$)";
+ my $curuid="$>";
+ $)="$newg";
+ $>="$newu";
symlink(readlink("$fromdir/$file"), "$todir/$file")
|| &cleanup("symlink: $!\n");
+ $>="$curuid";
+ $)="$curgid";
return;
}
elsif (-f "$fromdir/$file") {
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2005-02-05 11:00:37 UTC (rev 186)
+++ trunk/debian/changelog 2005-02-05 11:47:08 UTC (rev 187)
@@ -7,8 +7,10 @@
Closes: #268837.
* Fix docs wrongly suggesting home dirs created sgid. Thanks to
Shaul Karl. (mh) Closes: #286227.
+ * create /etc/skel symlinks with proper uid/gid. Thanks to Deepak
+ Goel. (mh) Closes: #268402.
- -- Marc Haber <mh+debian-packages@zugschlus.de> Sat, 5 Feb 2005 09:47:10 +0100
+ -- Marc Haber <mh+debian-packages@zugschlus.de> Sat, 5 Feb 2005 11:43:55 +0000
adduser (3.59) unstable; urgency=low