]> git.pld-linux.org Git - packages/autofs.git/blame - autofs-5.0.2-quell-mount-module-message.patch
- 5.0.3 with few official patches. ldap fixes needed
[packages/autofs.git] / autofs-5.0.2-quell-mount-module-message.patch
CommitLineData
3d551623
PG
1diff --git a/CHANGELOG b/CHANGELOG
2index 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 -----------------------
13diff --git a/daemon/mount.c b/daemon/mount.c
14index 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",
This page took 0.036126 seconds and 4 git commands to generate.