1 diff --git a/CHANGELOG b/CHANGELOG
2 index 3557b16..7e58092 100644
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).
11 18/06/2007 autofs-5.0.2
12 -----------------------
13 diff --git a/daemon/automount.c b/daemon/automount.c
14 index 7becad5..f31ec11 100644
15 --- a/daemon/automount.c
16 +++ b/daemon/automount.c
17 @@ -1125,7 +1125,7 @@ static void become_daemon(unsigned foreground)
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));
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);
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]);
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]);
40 state_mach_thid = pthread_self();