]> git.pld-linux.org Git - packages/autofs.git/blob - autofs-5.0.2-dont-fail-on-empty-master.patch
- rel.1, lets try
[packages/autofs.git] / autofs-5.0.2-dont-fail-on-empty-master.patch
1 diff --git a/CHANGELOG b/CHANGELOG
2 index 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  -----------------------
13 diff --git a/lib/master.c b/lib/master.c
14 index 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.826268 seconds and 3 git commands to generate.