]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfs-utils - mtab locking needed on add as well as update
authorIan Kent <raven@themaw.net>
Thu, 14 Dec 2006 11:34:52 +0000 (20:34 +0900)
committerNeil Brown <neilb@suse.de>
Mon, 18 Dec 2006 22:14:03 +0000 (09:14 +1100)
Hi all,

I noticed some mtab corruption the other day when doing some autofs
testing but thought nothing of it.

When investigating another issue I came across utils/mount.c:add_mtab
which looks like it adds an entry to /etc/mtab without performing
correct locking. Perhaps this is not needed when adding entries but I
think it is.


No differences found