summaryrefslogtreecommitdiff
path: root/lib/canonicalize.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-03lib: use O_CLOEXEC in libcommonKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-03lib/canonicalize: don't use /dev/mapper/<name> if the node does not existKarel Zak1-1/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-26lib/canonicalize: add canonicalize_path_restricted() to canonicalize without ↵Karel Zak1-0/+42
suid permisssions Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-26Revert "lib/canonicalize: always remove tailing slash"Karel Zak1-10/+3
It's overkill to modify unknown paths in a generic function like canonicalize_path(). for example: mount -t fuse 'sshfs#marty@thee:/' /media/thee will be canonicalized to mount -t fuse 'sshfs#marty@thee:' /media/thee and this obvious bug. Reported-by: Martin Panter <vadmium+floss@gmail.com> This reverts commit 28074a0952469aebf021821d95238cfb964d13ff.
2012-02-24lib/canonicalize: always remove tailing slashKarel Zak1-3/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-05-30lib: [loopdev.c] add module for work loop devicesKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-25lib: add test program to canonicalize.cKarel Zak1-0/+14
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-02-12build-sys: remove duplicate #includesKarel Zak1-1/+0
$ make checkincludes fsck/fsck.c: errno.h is included more than once. lib/canonicalize.c: string.h is included more than once. shlibs/blkid/src/blkidP.h: stdio.h is included more than once. shlibs/blkid/src/devname.c: string.h is included more than once. shlibs/blkid/src/devno.c: string.h is included more than once. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-26mount: and libblkid: covert /dev/dm-N to /dev/mapper/<name>Karel Zak1-4/+44
* mount(8) uses private device-mapper names in mtab * libblkid returns private device-mapper names when evaluate udev /dev/disk-by symlinks. * on systems where DM is fully integrated with udev the /dev/mapper/<name> files are symlinks to /dev/dm-N. It means we need a special care to hide private device-mapper names. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11mount: move realpath.c code to lib/Karel Zak1-0/+152
Signed-off-by: Karel Zak <kzak@redhat.com>