summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-30bash-completion: use '\n' as IFS when ask for filenamesKarel Zak46-0/+49
The bash completion for more(1) treats the space-separated pieces of filenames as different files. $ touch foo\ bar $ more foo<TAB> bar foo Reported-by: Ángel González <ingenit@zoho.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-30textual: fix misspelled words in -rc1Karel Zak4-9/+11
Reported-by: Rafael Ferreira <rafael.f.f1@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-30libmount: Save errno if mkostemp() failedNamhyung Kim1-1/+3
After mkostemp() failed, umask() and free() might alter the errno to another value. Not sure those calls really changes the errno or not. But let's be more conservative. Signed-off-by: Namhyung Kim <namhyung@gmail.com>
2013-09-30build-sys: simplify python detectionSami Kerola1-12/+7
This allows './configure --enable-most-builds' and 'make distcheck' to work when both python2 and python3 are installed, and user has set python version preference using symlink and PATH order. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-09-30clean up term lib handlingMike Frysinger5-52/+54
The ncurses package has been providing pkg-config files for a while now. So let's start using them to get the proper linker & compiler flags. It can make a difference when ncurses is configured in a way that requires extra link time flags but util-linux doesn't provide them, or when the headers live in a weird place and util-linux can't find them. Since the NCURSES_LIBS is always defined for the Makefile, there's no need to gate on the HAVE_NCURSES conditional. When it's disabled, the var will simply be empty. With a minor tweak to how tinfo is handled, we can do the same thing -- we just always use TINFO_LIBS in the Makefile's. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-09-30setterm: fix term.h/ncurses.h include orderingMike Frysinger1-2/+3
The ncurses term.h header has logic in it to detect if nucrses.h has already been included and void defining things when it has. But since setterm includes term.h and the ncurses.h, it doesn't work and we can get fun build-time warnings like: CC term-utils/setterm-setterm.o In file included from term-utils/setterm.c:109:0: /usr/include/ncursesw/ncurses.h:827:12: warning: redundant redeclaration of 'tigetflag' [-Wredundant-decls] extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *); /* implemented */ ^ In file included from term-utils/setterm.c:106:0: /usr/include/ncursesw/term.h:775:12: note: previous declaration of 'tigetflag' was here extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *); ^ Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-09-30findmnt: always allocate memory for cell valueDave Reisner1-1/+1
Since b3386c83fe77, findmnt's output uses TT_FL_FREEDATA, which causes a crash here when string literal is returned instead of a heap address. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-09-30nologin: add new commandKarel Zak7-0/+150
Currently it's maintained as distro specific (or people use impolite /bin/false way). Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-28Fix various typosYuri Chornoivan6-10/+10
2013-09-27build-sys: release++ (v2.24-rc1)Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27docs: update v2.24-ReleaseNotesKarel Zak1-1/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27build-sys: one install dir for all pylibmount stuffKarel Zak3-5/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27build-sys: fix lastb symlinkKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27po: merge changesKarel Zak27-621/+621
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27tests: update build testsKarel Zak18-18/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27build-sys: fix static buildsKarel Zak1-4/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27libblkid: update docsKarel Zak2-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27libmount: update docsKarel Zak4-7/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27umount: provide more helpful error messageKarel Zak1-0/+6
non-root user on device that is not mounted: $ umount /mnt/flash umount: /mnt/flash: umount failed: Operation not permitted this is true, because we cannot evaluate permissions as there is no entry in mtab, but users expect something more helpful -- for example umount: /mnt/flash: not mounted References: https://bugs.archlinux.org/task/31647 Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27libmount: small cleanup in umount codeKarel Zak2-3/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26docs: add v2.24-ReleaseNotesKarel Zak1-0/+784
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26mount: add notes about UUIDs to the man pageKarel Zak2-3/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26libmount: compose mount.<type> helpers paths more carefullyKarel Zak1-0/+1
The [u]mount helper path is "/sbin/mount.<type>", the <type> should not be possible to interpret like a path, for example: # mkdir /sbin/mount.fake # mount -t fake/../../../home/user/foo.sh Anyway, this is *not mount(8) security issue*, because: - non-root users don't have permissions to specify -t on mount(8) command line - /sbin is not writable for regular users This patch makes libmount more robust for situations when the library is used by incompetent developers who don't sanitize user's input. Reported-by: "Horsfall, Matthew" <mhorsfal@akamai.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26build-sys: add pylibmount __init__.py EXTRA_DISTKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26build-sys: fix ${prefix} usage, be more verbose about py pathsKarel Zak1-7/+11
- incorrect ${prefix} and ${exec_prefix} usage in AC_CASE (bug introduced by commit 9f57e6e8) - disable python by default (you have to use --with-python) - add python paths to the finale ./configure info message Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26build-sys: install to the correct python dirsKarel Zak2-3/+4
It seems we have to call AM_PATH_PYTHON() monster to get pyexec (shared libs) and python (scripts) directories. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26docs: update AUTHORS fileKarel Zak1-4/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26po: merge changesKarel Zak27-38324/+50109
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26po: update zh_TW.po (from translationproject.org)Wei-Lun Chao1-3722/+4483
2013-09-26po: update zh_CN.po (from translationproject.org)Wylmer Wang1-2999/+3201
2013-09-26po: update vi.po (from translationproject.org)Trần Ngọc Quân1-2988/+2154
2013-09-26po: update util-linux.pot (from translationproject.org)FULL NAME1-3445/+3687
2013-09-26po: update uk.po (from translationproject.org)Yuri Chornoivan1-1485/+770
2013-09-26po: update tr.po (from translationproject.org)Nilgün Belma Bugüner1-4189/+4941
2013-09-26po: update sv.po (from translationproject.org)Daniel Nylander1-4209/+4961
2013-09-26po: update sl.po (from translationproject.org)Simon Mihevc1-4173/+4926
2013-09-26po: update ru.po (from translationproject.org)Pavel Maryanov1-4190/+4959
2013-09-26po: update pt_BR.po (from translationproject.org)Rodrigo Stulzer Lopes1-4176/+4906
2013-09-26po: update pl.po (from translationproject.org)Jakub Bogusz1-1197/+655
2013-09-26po: update nl.po (from translationproject.org)Benno Schulenberg1-1765/+1091
2013-09-26po: update ja.po (from translationproject.org)Takeshi Hamasaki1-4176/+4957
2013-09-26po: update it.po (from translationproject.org)Marco Colombo1-4187/+4924
2013-09-26po: update id.po (from translationproject.org)Arif E. Nugroho1-4215/+5034
2013-09-26po: update hu.po (from translationproject.org)Gabor Kelemen1-4191/+4962
2013-09-26po: update hr.po (from translationproject.org)Tomislav Krznar1-3563/+3880
2013-09-26po: update gl.po (from translationproject.org)Fran Diéguez1-3878/+4326
2013-09-26po: update fr.po (from translationproject.org)David Prévot1-2047/+1023
2013-09-26po: update fi.po (from translationproject.org)Lauri Nurmi1-4169/+4948
2013-09-26po: update eu.po (from translationproject.org)Mikel Olasagasti Uranga1-4042/+4661
2013-09-26po: update et.po (from translationproject.org)Meelis Roos1-4167/+4897