]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Benno Schulenberg [Sat, 12 Oct 2013 17:49:11 +0000 (19:49 +0200)]
last: remove mistaken -F, --fullnames entry from the man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 12 Oct 2013 16:43:29 +0000 (18:43 +0200)]
docs: tweak wording, grammar and formatting of fdisk man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 12 Oct 2013 09:17:19 +0000 (11:17 +0200)]
textual: remove duplicate mention of '--help' from lsblk help text
Also improve the alphabetization of the other options.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 11 Oct 2013 13:52:07 +0000 (15:52 +0200)]
textual: equalize four error messages with already existing ones
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Karel Zak [Mon, 14 Oct 2013 08:18:46 +0000 (10:18 +0200)]
build-sys: fix tinfo congitional
Reported-by: Andrej Ota <andrej@ota.si>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 14 Oct 2013 08:13:47 +0000 (10:13 +0200)]
build-sys: move getopt examples to docdir
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 14 Oct 2013 07:51:09 +0000 (09:51 +0200)]
build-sys: fix {lib,sbin}dir paths
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 11:11:45 +0000 (13:11 +0200)]
build-sys: release++ (v2.24-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 11:10:34 +0000 (13:10 +0200)]
docs: update v2.24-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 11:03:13 +0000 (13:03 +0200)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 11:00:44 +0000 (13:00 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 10:53:56 +0000 (12:53 +0200)]
cal: fix gettext warning
/usr/bin/xgettext: Non-ASCII comment at or before misc-utils/cal.c:473.
Please specify the source encoding through --from-code.
Signed-off-by: Karel Zak <kzak@redhat.com>
Wylmer Wang [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)]
po: update zh_CN.po (from translationproject.org)
Yuri Chornoivan [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)]
po: update uk.po (from translationproject.org)
Rafael Ferreira [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)]
po: update pt_BR.po (from translationproject.org)
Jakub Bogusz [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)]
po: update pl.po (from translationproject.org)
Benno Schulenberg [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)]
po: update nl.po (from translationproject.org)
David Prévot [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)]
po: update fr.po (from translationproject.org)
Petr Písař [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)]
po: update cs.po (from translationproject.org)
Karel Zak [Fri, 11 Oct 2013 09:50:10 +0000 (11:50 +0200)]
libfdisk: mark label modified for PMBR mismatch
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 09:38:29 +0000 (11:38 +0200)]
libfdisk: treat size mismatch as a warning, not an error
Based on kernel patch from Doug Anderson <dianders@chromium.org>.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 09:16:23 +0000 (11:16 +0200)]
blockdev: add note about --setbsz usability
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 09:05:45 +0000 (11:05 +0200)]
Revert "blockdev: Remove the --setbsz (set blocksize) option which has never worked."
This reverts commit
b1555acc2f709ac4f3b1e6c686a11cadb7b04f72 .
It seems that the option is used by kernel guys to test kernel, so
let's keep the option in the blockdev(8) although it's almost useless
in userspace. All we need is to improve docs to make things more
obvious to end users.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Oct 2013 08:51:59 +0000 (10:51 +0200)]
libmount: fix mnt_context_is_child() comment
Signed-off-by: Karel Zak <kzak@redhat.com>
Namhyung Kim [Wed, 9 Oct 2013 15:17:08 +0000 (00:17 +0900)]
libmount: Fix typo in comment
s/MNT_OMASK_/MNT_OMODE_/
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Pádraig Brady [Wed, 9 Oct 2013 18:44:12 +0000 (20:44 +0200)]
cal: improve the help text and man page
* misc-utils/cal.c: Add a little doc string, and mention that the
current month is implicit if not specified. Also remove mention
of "current" from two option descriptions as a specific date may
have been specified.
* misc-utils/cal.1: Likewise.
[kzak@redhat.com: - use fputs and USAGE_SEPARATOR]
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 9 Oct 2013 14:02:42 +0000 (16:02 +0200)]
fdisk: add -t <type> to enable only specified type
In some cases (for example hybrid GPT) it's useful to force fdisk to
read only specified disk label and ignore everything else.
For example:
# fdisk -l /dev/sda
Disk /dev/sda: 149.1 GiB,
160041885696 bytes,
312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier:
3549290F -417C-4941-8503-
F7835109B821
Device Start End Size Type
/dev/sda1 2048
2050047 1000M EFI System
/dev/sda2
2050048 6146047 2G Microsoft basic data
/dev/sda3
6146048 26462207 9.7G Linux swap
/dev/sda4
26462208 98142207 34.2G Microsoft basic data
/dev/sda5
98142208 230662143 63.2G Microsoft basic data
/dev/sda6
230662144 312580095 39.1G Microsoft basic data
but when GPT is disabled we can access PMBR:
# fdisk -l -t dos /dev/sda
Disk /dev/sda: 149.1 GiB,
160041885696 bytes,
312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1
312581807 156290903 + ee GPT
Reported-by: Craig <util-linux_contact@magister.com.au>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 9 Oct 2013 14:02:33 +0000 (16:02 +0200)]
libfdisk: add API to disable specified label
Signed-off-by: Karel Zak <kzak@redhat.com>
Rafael Ferreira [Wed, 9 Oct 2013 10:16:09 +0000 (07:16 -0300)]
cytune: fix glush typo in cytune
Signed-off-by: Rafael Ferreira <rafael.f.f1@gmail.com>
Benno Schulenberg [Tue, 8 Oct 2013 15:29:20 +0000 (17:29 +0200)]
losetup: cut the remaining little block of help text into slices too
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Tue, 8 Oct 2013 15:18:18 +0000 (17:18 +0200)]
libfdisk: (gpt) use consistent final period in status messages
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Tue, 8 Oct 2013 15:14:38 +0000 (17:14 +0200)]
libfdisk: (dos) improve the grammar of an error message
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Tue, 8 Oct 2013 15:11:01 +0000 (17:11 +0200)]
libfdisk: (dos) correct the grammar of the disk-identifier prompt
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Tue, 8 Oct 2013 15:04:22 +0000 (17:04 +0200)]
textual: standardize some "cannot read" and "seek failed" error messages
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Karel Zak [Tue, 8 Oct 2013 15:00:44 +0000 (17:00 +0200)]
tests: use 'btrfs' rather than 'btrfsctl'
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 8 Oct 2013 14:37:13 +0000 (16:37 +0200)]
tests: update fdisk outputs
Signed-off-by: Karel Zak <kzak@redhat.com>
Richard W.M. Jones [Tue, 8 Oct 2013 08:54:10 +0000 (09:54 +0100)]
blockdev: Remove the --setbsz (set blocksize) option which has never worked.
This option has never worked. If you try setting the block size on a
block device, and then read it using --getbsz, you will see that the
block size never changes.
The reason for this is because the block size is specific to the
current file descriptor opening the block device, so the change of
block size only persists for as long as blockdev has the device open,
and is lost once blockdev exits.
Also the block size is not really used anywhere. Filesystems, for
example, have their own idea of block size and ignore this setting
completely.
(Thanks Masayoshi Mizuma for diagnosing the problem)
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Sami Kerola [Mon, 7 Oct 2013 22:04:23 +0000 (23:04 +0100)]
various: fix mixing declarations and code compiler warnings [smatch]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Benno Schulenberg [Sat, 5 Oct 2013 16:08:59 +0000 (18:08 +0200)]
docs: improve grammar and wording of the release-schedule text
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 5 Oct 2013 16:00:24 +0000 (18:00 +0200)]
COPYING: fix grammar of referring phrase, and indicate location better
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 4 Oct 2013 19:22:53 +0000 (21:22 +0200)]
textual: make two messages somewhat easier to understand
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Thu, 3 Oct 2013 21:03:28 +0000 (23:03 +0200)]
textual: tag a translator comment and put it in proper place
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Thu, 3 Oct 2013 19:57:03 +0000 (21:57 +0200)]
textual: use consistent wording and punctuation in fdisk stuff
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Thu, 3 Oct 2013 19:40:04 +0000 (21:40 +0200)]
textual: change spelling of "disk label" to the more abundant "disklabel"
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Thu, 3 Oct 2013 19:34:54 +0000 (21:34 +0200)]
textual: use the standard angular brackets for non-literal arguments
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Karel Zak [Tue, 8 Oct 2013 13:28:53 +0000 (15:28 +0200)]
libfdisk: (gpt) fix warning
Signed-off-by: Karel Zak <kzak@redhat.com>
Benno Schulenberg [Sun, 6 Oct 2013 09:49:54 +0000 (11:49 +0200)]
libfdisk/gpt: partly pluralize one message
And don't mention the largest when there is only one segment.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 5 Oct 2013 21:19:55 +0000 (23:19 +0200)]
wdctl: pluralize one thrice-repeated message
Also put in one hard space, to keep text and number separated when
the translated string should be too long.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 5 Oct 2013 21:12:23 +0000 (23:12 +0200)]
wdctl: gettextize and pluralize one forgotten message
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 5 Oct 2013 10:01:32 +0000 (12:01 +0200)]
partx: correct three messages
Properly describing the partition type, using a verb instead of a noun,
putting the blank line after the command options, and using the correct
argument for --output.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 5 Oct 2013 09:37:48 +0000 (11:37 +0200)]
partx: pluralize one message
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 5 Oct 2013 09:22:53 +0000 (11:22 +0200)]
libfdisk/sgi: tweak and harmonize some message strings
Using consistent capitals and lowercase, adding missing periods and
a missing space, repositioning commas for clarity, improving grammar,
and aligning substrings for esthetics.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 5 Oct 2013 09:01:28 +0000 (11:01 +0200)]
libfdisk/sgi: tweak and harmonize some comments
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sat, 5 Oct 2013 08:43:40 +0000 (10:43 +0200)]
libfdisk/sgi: properly pluralize three messages
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 4 Oct 2013 20:44:28 +0000 (22:44 +0200)]
mkfs.minix: properly pluralize four messages
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 4 Oct 2013 20:32:56 +0000 (22:32 +0200)]
wipefs: pluralize one message
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 4 Oct 2013 20:27:51 +0000 (22:27 +0200)]
su-common: pluralize one message
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 4 Oct 2013 20:15:15 +0000 (22:15 +0200)]
mcookie: pluralize two messages
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 4 Oct 2013 20:03:58 +0000 (22:03 +0200)]
textual: properly use uppercase in certain abbreviations
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 4 Oct 2013 19:59:02 +0000 (21:59 +0200)]
hexsyntax: in help text, wrap argument of option -e in angular brackets
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Fri, 4 Oct 2013 19:50:05 +0000 (21:50 +0200)]
textual: end both the singular and the plural message with a period
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Karel Zak [Mon, 7 Oct 2013 12:42:09 +0000 (14:42 +0200)]
libmount: (docs) make it obvious how we call mount.<type> helpers
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 4 Oct 2013 11:28:37 +0000 (13:28 +0200)]
build-sys: use tinfo *or* ncurses for more(1), ul(1) and setterm(1)
* it seems that we don't have to link the utils with ncurses, tinfo is enough.
This change saves one unnecessary dependence.
* libtinfo is also distributed with pkg-config files, so we can use
PKG_CHECK_MODULES() as a primary source for LIBS and CFLAGS.
* add TINFO_CFLAGS (although it's probably always empty)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 4 Oct 2013 10:07:12 +0000 (12:07 +0200)]
libfdisk: cleanup warning messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Benno Schulenberg [Thu, 3 Oct 2013 11:05:43 +0000 (13:05 +0200)]
docs: tweak the grammar of an agetty man-page fragment
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Thu, 3 Oct 2013 10:41:00 +0000 (12:41 +0200)]
libfdisk: improve spelling of two comments
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Wed, 25 Sep 2013 10:25:15 +0000 (12:25 +0200)]
agetty: use standard angular brackets in usage message
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Michael Forney [Thu, 3 Oct 2013 09:39:19 +0000 (02:39 -0700)]
build-sys: Fix check for __GNU_LIBRARY__
If we are not on glibc, __GNU_LIBRARY__ will not exist causing the check
to always fail and try to use syscalls directly.
Signed-off-by: Karel Zak <kzak@redhat.com>
Michael Forney [Thu, 3 Oct 2013 09:39:18 +0000 (02:39 -0700)]
build-sys: Check for type sighandler_t and use if present
__sighandler_t is libc implementation specific and should not be relied
upon. Instead, we fall back upon void (*)(int), as specified by POSIX.
Signed-off-by: Karel Zak <kzak@redhat.com>
Michael Forney [Thu, 3 Oct 2013 09:39:17 +0000 (02:39 -0700)]
include: Add missing includes
sys/types.h: For u_char typedef
sys/params.h: For MAXNAMLEN
sys/ttydefaults.h: For various tty definitions (also add configure check)
Signed-off-by: Karel Zak <kzak@redhat.com>
Michael Forney [Thu, 3 Oct 2013 09:36:05 +0000 (02:36 -0700)]
build-sys: Use _POSIX_VERSION to determine support for %m
%m is included in POSIX 2008, so we can check if the libc implements
that before failing.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 3 Oct 2013 14:20:38 +0000 (16:20 +0200)]
testsL fix py<libname> check
Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Oct 2013 12:43:17 +0000 (14:43 +0200)]
su: fix caught_signal logic and initialize oldact [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Oct 2013 12:20:59 +0000 (14:20 +0200)]
fdisk: fix possible memleak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Oct 2013 12:07:32 +0000 (14:07 +0200)]
lscpu: cleanup DMI code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Oct 2013 09:21:22 +0000 (11:21 +0200)]
docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 15:29:51 +0000 (17:29 +0200)]
lscpu: check strchr() result [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 15:26:33 +0000 (17:26 +0200)]
lscpu: don't pass null pointer to string functions [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 15:23:26 +0000 (17:23 +0200)]
libmount: remove dead code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 15:21:12 +0000 (17:21 +0200)]
libblkid: use proper type in xfs log checker [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 15:18:54 +0000 (17:18 +0200)]
pylibmount: check for mnt_fs_get_tag() return value [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 15:15:08 +0000 (17:15 +0200)]
pylibmount: make tab parsers more robust [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 15:11:25 +0000 (17:11 +0200)]
utmpdump: make analyzers happy
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 14:59:43 +0000 (16:59 +0200)]
last: check fstat() return [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 14:56:26 +0000 (16:56 +0200)]
libmount: make mnt_table_replace_file() more robust [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 14:07:50 +0000 (16:07 +0200)]
fsck: don't print warning if there is no /etc/fstab at all
Reported-by: Thomas Bächler <thomas@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Oct 2013 13:52:11 +0000 (15:52 +0200)]
losetup: don't require 512-byte aligned offsets
Kernel aligns the device size, but the offset where the device starts
is not required to be aligned.
# losetup --offset 32 -f file.img
is just fine, the final size of the look device will be (in sectors)
(backing_file_size - offset) >> 9
so we have to do the same in userspace when we check for successful
set capacity ioctl.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Sep 2013 13:56:31 +0000 (15:56 +0200)]
Merge branch 'master' of https://github.com/yurchor/util-linux
Karel Zak [Mon, 30 Sep 2013 13:49:00 +0000 (15:49 +0200)]
bash-completion: use '\n' as IFS when ask for filenames
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>
Karel Zak [Mon, 30 Sep 2013 11:58:53 +0000 (13:58 +0200)]
textual: fix misspelled words in -rc1
Reported-by: Rafael Ferreira <rafael.f.f1@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Namhyung Kim [Sun, 29 Sep 2013 10:11:37 +0000 (19:11 +0900)]
libmount: Save errno if mkostemp() failed
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>
Sami Kerola [Sun, 29 Sep 2013 09:51:13 +0000 (10:51 +0100)]
build-sys: simplify python detection
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>
Mike Frysinger [Sun, 29 Sep 2013 04:44:43 +0000 (00:44 -0400)]
clean up term lib handling
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>
Mike Frysinger [Sun, 29 Sep 2013 04:44:36 +0000 (00:44 -0400)]
setterm: fix term.h/ncurses.h include ordering
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>
Dave Reisner [Sat, 28 Sep 2013 22:22:43 +0000 (18:22 -0400)]
findmnt: always allocate memory for cell value
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>
Karel Zak [Mon, 30 Sep 2013 11:36:26 +0000 (13:36 +0200)]
nologin: add new command
Currently it's maintained as distro specific (or people use impolite
/bin/false way).
Signed-off-by: Karel Zak <kzak@redhat.com>
Yuri Chornoivan [Sat, 28 Sep 2013 10:33:59 +0000 (13:33 +0300)]
Fix various typos
Karel Zak [Fri, 27 Sep 2013 12:34:41 +0000 (14:34 +0200)]
build-sys: release++ (v2.24-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 27 Sep 2013 12:27:10 +0000 (14:27 +0200)]
docs: update v2.24-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 27 Sep 2013 12:06:14 +0000 (14:06 +0200)]
build-sys: one install dir for all pylibmount stuff
Signed-off-by: Karel Zak <kzak@redhat.com>