search for: del_mtab

Displaying 2 results from an estimated 2 matches for "del_mtab".

2012 Jan 28
0
ANNOUNCE: cifs-utils release 5.3 is ready for download
...gt; Date: Mon Jan 16 12:29:49 2012 -0500 mount.cifs: Properly update mtab during remount During a remount of a cifs filesystem, the mtab file is not properly updated, which leads to a doubled entry of the same filesystem in the /etc/mtab file. This patch adds a new function del_mtab() which is called before the add_mtab() in case the fs is being remounted. The del_mtab() function will delete from the mtab, the old entry from the filesystem which is being remounted, and then, calls add_mtab() to add an updated entry to the mtab file. Signed-off-by:...
2014 Jan 09
0
ANNOUNCE: cifs-utils release 6.3 ready for download
...05:05 2013 -0400 mount.cifs: fix bad free() of string returned by dirname() Coverity says: Error: CPPCHECK_WARNING: [#def10] cifs-utils-6.2/mount.cifs.c:1518: error[memleakOnRealloc]: Common realloc mistake: 'mtabdir' nulled but not freed upon failure del_mtab has a number of bugs in handling of allocated memory: a) the return value of strdup() is not checked b) It calls realloc() on a pointer that wasn't returned by an allocation function (e.g. malloc, calloc, etc.) c) If realloc() fails, it doesn't call free()...