summaryrefslogtreecommitdiffstats
path: root/mount/mount_mntent.c
Commit message (Collapse)AuthorAgeFilesLines
* mount: -a segfaults when 4th field is omitted (mount options)Karel Zak2011-05-111-2/+3
| | | | | | | | | | # echo 'tmpd /tmp/x tmpfs' >> /etc/fstab # mkdir /tmp/x # mount -a segfault Reported-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: segfaults with inconsistent entry in /etc/fstabKarel Zak2011-03-041-0/+3
| | | | | | Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/726283 Reported-by: Greg Brockman <gdb@gregbrockman.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup mangle() usageKarel Zak2011-01-031-7/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: use better format for utab, improve bind mountsKarel Zak2011-01-031-8/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use unmangle/mangle() from libKarel Zak2010-03-111-53/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* replace bcopy,bzero,index and rindexDaniel Mierswa2009-08-171-2/+2
| | | | | | | | | Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in POSIX.1-2008. Replaced with memmove,memset,strchr and strrchr. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
* remove useless if-before-free tests.Jim Meyering2008-03-121-2/+1Star
| | | | | | | | | | | | | | | | E.g., in this example, the "if (p)" test is useless. if (p) free (p); I've been removing such tests systematically. Here's where I proposed it to the git folks, along with justification for why it's ok to perform this transformation, these days (no one uses SunOS4 anymore): http://thread.gmane.org/gmane.comp.version-control.git/74187 Signed-off-by: Jim Meyering <meyering@redhat.com>
* mount: clean up gcc warnings (mount_mntent.c)Randy Dunlap2007-10-111-1/+1
| | | | | | | | | | | | | Fix gcc warnings from: (try compilation with "-Wall -Wp,-D_FORTIFY_SOURCE=2") mount_mntent.c:28: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness mount_mntent.c:129: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:130: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:131: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:132: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
* build-sys: remove DEFAULT_INCLUDES workaroundKarel Zak2007-01-041-0/+222
The automake stuff uses "-I.". as a default gcc option for includes. This is a problem for source code where is local includes with a same name like system includes (e.g. mntent.h, paths.h). Possible workaround is overwrite the automake DEFAULT_INCLUDES variable. But this solution produces warnings. The best way (this patch) is probably rename the files and remove DEFAULT_INCLUDES. Signed-off-by: Karel Zak <kzak@redhat.com>