]>
Commit | Line | Data |
---|---|---|
3d551623 PG |
1 | diff --git a/CHANGELOG b/CHANGELOG |
2 | index 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 | ----------------------- | |
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) | |
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(); |