[Pkg-shadow-commits] r1032 - in trunk/debian: . patches
Nicolas FRANCOIS
nekral-guest at costa.debian.org
Sat Jun 24 12:26:29 UTC 2006
Author: nekral-guest
Date: 2006-06-24 12:26:26 +0000 (Sat, 24 Jun 2006)
New Revision: 1032
Added:
trunk/debian/patches/301_useradd-375040
Removed:
trunk/debian/patches/301_useradd-374705
Modified:
trunk/debian/changelog
trunk/debian/patches/series
Log:
301_useradd-374705 was fixing #375040. Rename the patch and change the
explanations in debian/changelog.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2006-06-22 17:49:26 UTC (rev 1031)
+++ trunk/debian/changelog 2006-06-24 12:26:26 UTC (rev 1032)
@@ -11,8 +11,8 @@
* Debconf translation updates:
- Lituanian translation updated. Closes: #374313
* Upstream bugs fixed upstream:
- - debian/patches/301_useradd-374705: stop creating incorrect
- mail spool files during user creation. Closes: #374705
+ - debian/patches/301_useradd-375040: create the mail spool files during
+ user creation when CREATE_MAIL_SPOOL=yes. Closes: #375040
Thanks to Stephen Gran for helping out with the correct patch.
-- Christian Perrier <bubulle at debian.org> Sat, 10 Jun 2006 19:04:48 +0200
Deleted: trunk/debian/patches/301_useradd-374705
===================================================================
--- trunk/debian/patches/301_useradd-374705 2006-06-22 17:49:26 UTC (rev 1031)
+++ trunk/debian/patches/301_useradd-374705 2006-06-24 12:26:26 UTC (rev 1032)
@@ -1,68 +0,0 @@
-Goal: Fix the user's mail spool creation
-
-Fixes: #374705
-
-Status vs upstream: Applied for 4.0.17
-
-Index: shadow-4.0.16/src/useradd.c
-===================================================================
---- shadow-4.0.16.orig/src/useradd.c 2006-06-22 19:44:51.048856000 +0200
-+++ shadow-4.0.16/src/useradd.c 2006-06-22 19:45:08.489946000 +0200
-@@ -1247,6 +1247,11 @@
- audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "adding user",
- user_name, -1, 0);
- #endif
-+
-+ /* TODO: add handle change default spool mail creation by
-+ -K CREATE_MAIL_SPOOL={yes,no}. It need rewrite internal API for handle
-+ shadow tools configuration */
-+ create_mail_spool = def_create_mail_spool;
- exit (E_BAD_ARG);
- }
- if (!dflg) {
-@@ -1600,6 +1605,7 @@
- }
- }
-
-+ }
- /*
- * create_mail - create the user's mail spool
- *
-@@ -1624,23 +1630,22 @@
- perror (_("Creating mailbox file"));
- return;
-
-- gr = getgrnam ("mail");
-- if (!gr) {
-- fprintf (stderr,
-- _
-- ("Group 'mail' not found. Creating the user mailbox file with 0600 mode.\n"));
-- gid = user_gid;
-- mode = 0600;
-- } else {
-- gid = gr->gr_gid;
-- mode = 0660;
-- }
-+ gr = getgrnam ("mail");
-+ if (!gr) {
-+ fprintf (stderr,
-+ _
-+ ("Group 'mail' not found. Creating the user mailbox file with 0600 mode.\n"));
-+ gid = user_gid;
-+ mode = 0600;
-+ } else {
-+ gid = gr->gr_gid;
-+ mode = 0660;
-+ }
-
-- if (fchown (fd, user_id, gid) || fchmod (fd, mode))
-- perror (_("Setting mailbox file permissions"));
-+ if (fchown (fd, user_id, gid) || fchmod (fd, mode))
-+ perror (_("Setting mailbox file permissions"));
-
-- close (fd);
-- }
-+ close (fd);
- }
- }
-
Copied: trunk/debian/patches/301_useradd-375040 (from rev 1031, trunk/debian/patches/301_useradd-374705)
===================================================================
--- trunk/debian/patches/301_useradd-374705 2006-06-22 17:49:26 UTC (rev 1031)
+++ trunk/debian/patches/301_useradd-375040 2006-06-24 12:26:26 UTC (rev 1032)
@@ -0,0 +1,68 @@
+Goal: Fix the user's mail spool creation
+
+Fixes: #375040
+
+Status vs upstream: Applied for 4.0.17
+
+Index: shadow-4.0.16/src/useradd.c
+===================================================================
+--- shadow-4.0.16.orig/src/useradd.c 2006-06-22 19:44:51.048856000 +0200
++++ shadow-4.0.16/src/useradd.c 2006-06-22 19:45:08.489946000 +0200
+@@ -1247,6 +1247,11 @@
+ audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "adding user",
+ user_name, -1, 0);
+ #endif
++
++ /* TODO: add handle change default spool mail creation by
++ -K CREATE_MAIL_SPOOL={yes,no}. It need rewrite internal API for handle
++ shadow tools configuration */
++ create_mail_spool = def_create_mail_spool;
+ exit (E_BAD_ARG);
+ }
+ if (!dflg) {
+@@ -1600,6 +1605,7 @@
+ }
+ }
+
++ }
+ /*
+ * create_mail - create the user's mail spool
+ *
+@@ -1624,23 +1630,22 @@
+ perror (_("Creating mailbox file"));
+ return;
+
+- gr = getgrnam ("mail");
+- if (!gr) {
+- fprintf (stderr,
+- _
+- ("Group 'mail' not found. Creating the user mailbox file with 0600 mode.\n"));
+- gid = user_gid;
+- mode = 0600;
+- } else {
+- gid = gr->gr_gid;
+- mode = 0660;
+- }
++ gr = getgrnam ("mail");
++ if (!gr) {
++ fprintf (stderr,
++ _
++ ("Group 'mail' not found. Creating the user mailbox file with 0600 mode.\n"));
++ gid = user_gid;
++ mode = 0600;
++ } else {
++ gid = gr->gr_gid;
++ mode = 0660;
++ }
+
+- if (fchown (fd, user_id, gid) || fchmod (fd, mode))
+- perror (_("Setting mailbox file permissions"));
++ if (fchown (fd, user_id, gid) || fchmod (fd, mode))
++ perror (_("Setting mailbox file permissions"));
+
+- close (fd);
+- }
++ close (fd);
+ }
+ }
+
Modified: trunk/debian/patches/series
===================================================================
--- trunk/debian/patches/series 2006-06-22 17:49:26 UTC (rev 1031)
+++ trunk/debian/patches/series 2006-06-24 12:26:26 UTC (rev 1032)
@@ -34,4 +34,4 @@
402-clarify_usermod_usage
487_passwd_chauthtok_failed_message
403_fix_PATH-MAX_hurd
-301_useradd-374705
+301_useradd-375040
More information about the Pkg-shadow-commits
mailing list