]>
Commit | Line | Data |
---|---|---|
3d551623 PG |
1 | diff --git a/CHANGELOG b/CHANGELOG |
2 | index 4aa384b..09b0541 100644 | |
3 | --- a/CHANGELOG | |
4 | +++ b/CHANGELOG | |
5 | @@ -55,6 +55,7 @@ | |
6 | - fix to quoting for exports gathered by hosts map. | |
7 | - use mount option "nosuid" for "-hosts" map unless "suid" is explicily specified. | |
8 | - second attempt fixing quoting for exports gathered by hosts map. | |
9 | +- quell annoying "cannot open mount module" message. | |
10 | ||
11 | 18/06/2007 autofs-5.0.2 | |
12 | ----------------------- | |
13 | diff --git a/daemon/mount.c b/daemon/mount.c | |
14 | index 59f8f44..494ede1 100644 | |
15 | --- a/daemon/mount.c | |
16 | +++ b/daemon/mount.c | |
17 | @@ -38,14 +38,21 @@ int do_mount(struct autofs_point *ap, const char *root, const char *name, int na | |
18 | char **ngp; | |
19 | int rv; | |
20 | ||
21 | - mod = open_mount(modstr = fstype, ERR_PREFIX); | |
22 | + /* Initially look for a mount module but don't issue an error on fail */ | |
23 | + mod = open_mount(modstr = fstype, NULL); | |
24 | if (!mod) { | |
25 | for (ngp = not_generic; *ngp; ngp++) { | |
26 | if (!strcmp(fstype, *ngp)) | |
27 | break; | |
28 | } | |
29 | + /* | |
30 | + * If there's not a known mount module use the generic module, | |
31 | + * otherwise redo the fs mount module with error reporting | |
32 | + */ | |
33 | if (!*ngp) | |
34 | mod = open_mount(modstr = "generic", ERR_PREFIX); | |
35 | + else | |
36 | + mod = open_mount(modstr = fstype, ERR_PREFIX); | |
37 | if (!mod) { | |
38 | error(ap->logopt, | |
39 | "cannot find mount method for filesystem %s", |