]> git.pld-linux.org Git - packages/autofs.git/blame - autofs-5.0.2-dont-fail-on-empty-master.patch
- 5.0.3 with few official patches. ldap fixes needed
[packages/autofs.git] / autofs-5.0.2-dont-fail-on-empty-master.patch
CommitLineData
3d551623
PG
1diff --git a/CHANGELOG b/CHANGELOG
2index 20562bd..da8c599 100644
3--- a/CHANGELOG
4+++ b/CHANGELOG
5@@ -14,6 +14,7 @@
6 - fix version passed to get_supported_ver_and_cost.
7 - mark map instances stale so they aren't "cleaned" during updates.
8 - fix large file compile time option.
9+- don't fail on empty master map.
10
11 18/06/2007 autofs-5.0.2
12 -----------------------
13diff --git a/lib/master.c b/lib/master.c
14index 4d31959..9f24f7e 100644
15--- a/lib/master.c
16+++ b/lib/master.c
17@@ -803,7 +803,7 @@ int master_read_master(struct master *master, time_t age, int readall)
18 if (list_empty(&master->mounts)) {
19 master_mutex_unlock();
20 error(LOGOPT_ANY, "no mounts in table");
21- return 0;
22+ return 1;
23 }
24
25 master_mutex_unlock();
This page took 0.047751 seconds and 4 git commands to generate.