From 9aba9c7a7517d630d8ac076074c7c56d39917885 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 4 May 2010 14:51:37 -0700 Subject: [PATCH] Read all members of previous cacheinfo file If we don't have three destination variables, the cachedir gets the cache size appended to it. Add a cachesize variable whose contents we then ignore. --- debian/openafs-client.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/openafs-client.postinst b/debian/openafs-client.postinst index a12673238..ee44d5388 100644 --- a/debian/openafs-client.postinst +++ b/debian/openafs-client.postinst @@ -69,7 +69,7 @@ if [ "$1" = configure ] || [ "$1" = reconfigure ] ; then mountpoint=/afs cachedir=/var/cache/openafs if [ -r /etc/openafs/cacheinfo ] ; then - IFS=: read mountpoint cachedir < /etc/openafs/cacheinfo + IFS=: read mountpoint cachedir cachesize < /etc/openafs/cacheinfo fi db_get openafs-client/cachesize echo "${mountpoint}:${cachedir}:${RET}" > /etc/openafs/cacheinfo -- 2.39.5