setuid-wrapper.c: Remove tabs

Changed files
+6 -6
nixos
modules
security
+6 -6
nixos/modules/security/setuid-wrapper.c
···
false `X.real' file, to allow arbitrary programs from being
executed setuid. */
assert ((strncmp(self, wrapperDir, sizeof(wrapperDir)) == 0) &&
-
(self[strlen(wrapperDir)] == '/'));
+
(self[strlen(wrapperDir)] == '/'));
/* Make *really* *really* sure that we were executed as `self',
and not, say, as some other setuid program. That is, our
···
assert (lstat(self, &st) != -1);
//printf("%d %d\n", st.st_uid, st.st_gid);
-
+
assert ((st.st_mode & S_ISUID) == 0 ||
-
(st.st_uid == geteuid()));
+
(st.st_uid == geteuid()));
assert ((st.st_mode & S_ISGID) == 0 ||
-
st.st_gid == getegid());
+
st.st_gid == getegid());
/* And, of course, we shouldn't be writable. */
assert (!(st.st_mode & (S_IWGRP | S_IWOTH)));
···
real[len] = 0;
close(fdSelf);
-
+
//printf("real = %s, len = %d\n", real, len);
execve(real, argv, environ);
fprintf(stderr, "%s: cannot run `%s': %s\n",
argv[0], real, strerror(errno));
-
+
exit(1);
}