a small fix in the system-tools-backends

Sergio Lenzi enigma at k1.com.br
Wed Feb 1 14:10:44 PST 2006


Hello..


I am genarating a gnome 2.12 on a FreeBSD 5.4
and notice needs a small fix in the system-tools-backends ports

the program includes the user correctly but the permission  in the
new user directory remains is set for the root user.

the patch fixes this behaviour....

it replaces the same file in the files port directory....





-------------- next part --------------
--- users-conf.in.orig	Mon Jan  2 13:48:06 2006
+++ users-conf.in	Wed Feb  1 19:35:22 2006
@@ -76,7 +76,7 @@
               "debian-2.2", "debian-3.0", "debian-sarge",
               "suse-7.0", "suse-9.0", "suse-9.1", "turbolinux-7.0",
               "slackware-8.0.0", "slackware-8.1", "slackware-9.0.0", "slackware-9.1.0", "slackware-10.0.0", "slackware-10.1.0", "slackware-10.2.0",
-              "freebsd-4", "freebsd-5", "freebsd-6",
+              "freebsd-4", "freebsd-5", "freebsd-6", "freebsd-7",
               "gentoo", "vlos-1.2",
               "archlinux",
               "pld-1.0", "pld-1.1", "pld-1.99", "fedora-1", "fedora-2", "fedora-3", "rpath", "vine-3.0", "vine-3.1");
@@ -374,6 +374,7 @@
   'freebsd-4'       => $freebsd_logindefs_defaults,
   'freebsd-5'       => $freebsd_logindefs_defaults,
   'freebsd-6'       => $freebsd_logindefs_defaults,
+  'freebsd-7'       => $freebsd_logindefs_defaults,
   'suse-7.0'        => $gentoo_logindefs_defaults,
   'suse-9.0'        => $gentoo_logindefs_defaults,
   'suse-9.1'        => $gentoo_logindefs_defaults,
@@ -917,8 +918,8 @@
     my $home;
 
     # FreeBSD doesn't create the home directory
-    $home = $$data[$users_prop_map{"home"}];
-    &gst_file_run ("$tool_mkdir -p $home");
+    # $home = $$data[$users_prop_map{"home"}];
+    # &gst_file_run ("$tool_mkdir -p $home");
 
     $command = "$cmd_pw useradd " .
      " -n \'" . $$data[$users_prop_map{"login"}] . "\'" .
@@ -926,7 +927,7 @@
      " -d \'" . $$data[$users_prop_map{"home"}] . "\'" .
      " -g \'" . $$data[$users_prop_map{"gid"}] . "\'" .
      " -s \'" . $$data[$users_prop_map{"shell"}] . "\'" .
-     " -H 0"; # pw(8) reads password from STDIN
+     " -m -H 0"; # pw(8) reads password from STDIN
 
     $pwdpipe = &gst_file_run_pipe($command, $GST_FILE_WRITE);
     print $pwdpipe $$data[$users_prop_map{"password"}];


More information about the freebsd-gnome mailing list