autofs/autofs-5.0.2-dont-fail-on-empty-master.patch
Ian Kent e676fc4cda - don't fail on empty master map.
- add support for the "%" hack for case insensitive attribute schemas.
2007-08-21 03:37:01 +00:00

14 lines
364 B
Diff

diff --git a/lib/master.c b/lib/master.c
index 4d31959..9f24f7e 100644
--- a/lib/master.c
+++ b/lib/master.c
@@ -803,7 +803,7 @@ int master_read_master(struct master *master, time_t age, int readall)
if (list_empty(&master->mounts)) {
master_mutex_unlock();
error(LOGOPT_ANY, "no mounts in table");
- return 0;
+ return 1;
}
master_mutex_unlock();