]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/kudzu-0.99.50-pam.patch
Wir kehren zurueck zu Kudzu, da hwinfo noch mehr Aerger macht.
[people/teissler/ipfire-2.x.git] / src / patches / kudzu-0.99.50-pam.patch
CommitLineData
cd1a2927
MT
1diff -ruN kudzu-0.99.50.old/updfstab.c kudzu-0.99.50/updfstab.c
2--- kudzu-0.99.50.old/updfstab.c Mon Apr 8 05:37:01 2002
3+++ kudzu-0.99.50/updfstab.c Tue Dec 16 15:22:26 2003
4@@ -688,33 +688,6 @@
5 return 1;
6 }
7
8- /* do this before moving onto /etc/fstab; this keeps magicdev
9- from noticing the change before the permissions are correct */
10-
11- pid = fork();
12- if (!pid) {
13- execl("/sbin/pam_console_apply", "/sbin/pam_console_apply",
14- "-f", revokeFileName, "-r", NULL);
15- printf("failed\n");
16- exit(-1);
17- }
18- waitpid(pid, &status, 0);
19-
20- if (!WIFEXITED(status) || WEXITSTATUS(status))
21- fprintf(stderr, _("/sbin/pam_console_apply -r failed\n"));
22-
23- pid = fork();
24- if (!pid) {
25- execl("/sbin/pam_console_apply", "/sbin/pam_console_apply",
26- "-f", outputFileName, NULL);
27- printf("failed\n");
28- exit(-1);
29- }
30-
31- waitpid(pid, &status, 0);
32- if (!WIFEXITED(status) || WEXITSTATUS(status))
33- fprintf(stderr, _("/sbin/pam_console_apply failed\n"));
34-
35 if (rename(outputFileName, fileName)) {
36 fprintf(stderr, _("failed to rename %s to %s: %s\n"),
37 outputFileName, fileName, strerror(errno));