Re: [PATCH] umount: only call update_mtab if mtab_is_writable().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 25, 2007 at 08:27:42PM -0600, LaMont Jones wrote:
> There are several calls to update_mtab() which are not guarded by
> mtab_is_writable().  Reported by: Daniel Jacobowitz <dan@xxxxxxxxxx>

 The guard is directly included in the update_mtab(). See fstab.c:

void
update_mtab (const char *dir, struct my_mntent *instead) {
    ....

	if (mtab_does_not_exist() || !mtab_is_writable())
		return;



    Karel



-- 
 Karel Zak  <kzak@xxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux