Quoting Christian Perrier ([EMAIL PROTECTED]):
> 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.


--- 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);

Reply via email to