]> git.pld-linux.org Git - packages/autofs.git/blame - autofs-5.0.2-start-pipe-buff-size.patch
- 5.0.3 with few official patches. ldap fixes needed
[packages/autofs.git] / autofs-5.0.2-start-pipe-buff-size.patch
CommitLineData
3d551623
PG
1diff --git a/CHANGELOG b/CHANGELOG
2index 3557b16..7e58092 100644
3--- a/CHANGELOG
4+++ b/CHANGELOG
5@@ -46,6 +46,7 @@
6 - fix large group handling (Ryan Thomas).
7 - fix for dynamic logging breaking non-sasl build (Guillaume Rousse)
8 - eliminate NULL proc ping for singleton host or local mounts.
9+- fix incorrect read/write size of startup status token (Matthias Koenig).
10
11 18/06/2007 autofs-5.0.2
12 -----------------------
13diff --git a/daemon/automount.c b/daemon/automount.c
14index 7becad5..f31ec11 100644
15--- a/daemon/automount.c
16+++ b/daemon/automount.c
17@@ -1125,7 +1125,7 @@ static void become_daemon(unsigned foreground)
18 if (pid > 0) {
19 int r;
20 close(start_pipefd[1]);
21- r = read(start_pipefd[0], pst_stat, sizeof(pst_stat));
22+ r = read(start_pipefd[0], pst_stat, sizeof(*pst_stat));
23 if (r < 0)
24 exit(1);
25 exit(*pst_stat);
26@@ -2061,12 +2061,12 @@ int main(int argc, char *argv[])
27 if (!master_read_master(master_list, age, 0)) {
28 master_kill(master_list);
29 *pst_stat = 3;
30- res = write(start_pipefd[1], pst_stat, sizeof(pst_stat));
31+ res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
32 close(start_pipefd[1]);
33 exit(3);
34 }
35
36- res = write(start_pipefd[1], pst_stat, sizeof(pst_stat));
37+ res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
38 close(start_pipefd[1]);
39
40 state_mach_thid = pthread_self();
This page took 0.030195 seconds and 4 git commands to generate.