Fix getgroups call error

Made long ago. Jaunty's compiler detects this interestingly.
pull/5/head
Michael Spang 14 years ago
parent c0b87dbc98
commit b523fbf206
  1. 2
      src/common.c
  2. 1
      src/simpleaddhomedir.c

@ -23,7 +23,7 @@ int ceo_get_privileged() {
return 0;
pgid = privgrp->gr_gid;
count = getgroups(sizeof(grps), grps);
count = getgroups(sizeof(grps)/sizeof(*grps), grps);
for (i = 0; i < count; i++)
if (grps[i] == pgid)
return 1;

@ -18,7 +18,6 @@ int main(int argc, char *argv[]) {
char *skeldir = argv[2];
char *mode = argv[5];
uid_t uid, gid;
char *zfs_bin = "/usr/sbin/zfs";
char *mkdir_bin = "/bin/mkdir";
char *chmod_bin = "/bin/chmod";
char *dataset = homedir;

Loading…
Cancel
Save