[Adduser-devel] Bug#354459: create_homedir(): *.dpkg-* hardcoded

Marc Haber mh+debian-bugs at zugschlus.de
Sun Feb 26 14:56:59 UTC 2006


Package: adduser
Version: 3.84
Severity: normal

Hi,

in create_homedir, *.dpkg-* is hardcoded. I'd like to have that mask
at least configurable in a variable, or - better - from the config
file with a reasonable default.

Code in question:

      if ($config{"skel"} && $copy_skeleton) {
          printf gtx("Copying files from %s'\n"),$config{skel} if $verbose;
          open(FIND, "cd $config{skel}; find .  ! -name '*.dpkg-*' -print |")
              || &cleanup("fork for find: $!\n");
          while (<FIND>) {
              chop;
              next if ($_ eq ".");
              next if ($_ =~ /\.dpkg-/);
              &copy_to_dir($config{"skel"}, $_, $home_dir, $new_uid,
                            $new_gid, ($config{"setgid_home"} =~ /yes/i));
          }
      }

*UGH*

Greetings
Marc




More information about the Adduser-devel mailing list