Bug#166793: [Pkg-shadow-devel] Bug#166793: Patch for this issue
(pwconv should create /etc/shadow 0440 root.shadow)
Christian Perrier
bubulle at debian.org
Wed Oct 12 07:12:45 UTC 2005
Quoting Christian Perrier (bubulle at debian.org):
> Attached is a patch for doing this.
>
> This is highly Debian-specific, as I hardcoded the GID of the "shadow"
> group. There are maybe cleaner ways to do this.
Here's a less crude patch.
-------------- next part --------------
--- commonio.c.old 2005-10-12 09:11:12.507206547 +0200
+++ commonio.c 2005-10-12 07:37:14.630432346 +0200
@@ -675,7 +675,7 @@
*/
sb.st_mode = 0440;
sb.st_uid = 0;
- sb.st_gid = 42;
+ sb.st_gid = getgrnam("shadow");
}
snprintf (buf, sizeof buf, "%s+", db->filename);
More information about the Pkg-shadow-devel
mailing list