]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
10 years agolibfdisk: fix SIGFPE stable/v2.23
Karel Zak [Mon, 9 Sep 2013 08:57:50 +0000 (10:57 +0200)] 
libfdisk: fix SIGFPE

 #0 recount_geometry at libfdisk/src/alignment.c:143
 #1 fdisk_discover_geometry at libfdisk/src/alignment.c:205
 #2 fdisk_context_assign_device at libfdisk/src/context.c:173
 #3 print_partition_table_from_option at fdisks/fdisk.c:924

References: https://bugzilla.redhat.com/show_bug.cgi?id=1005566
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: release++ (v2.23.2) v2.23.2
Karel Zak [Wed, 31 Jul 2013 11:27:55 +0000 (13:27 +0200)] 
build-sys: release++ (v2.23.2)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: add v2.23.2-ReleaseNotes
Karel Zak [Wed, 31 Jul 2013 11:25:59 +0000 (13:25 +0200)] 
docs: add v2.23.2-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update AUTHORS file
Karel Zak [Wed, 31 Jul 2013 11:22:24 +0000 (13:22 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: merge changes
Karel Zak [Wed, 31 Jul 2013 11:16:59 +0000 (13:16 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Wed, 31 Jul 2013 10:42:40 +0000 (12:42 +0200)] 
po: update uk.po (from translationproject.org)

10 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Wed, 31 Jul 2013 10:42:40 +0000 (12:42 +0200)] 
po: update pl.po (from translationproject.org)

10 years agopo: update fr.po (from translationproject.org)
David Prévot [Wed, 31 Jul 2013 10:42:40 +0000 (12:42 +0200)] 
po: update fr.po (from translationproject.org)

10 years agopo: update cs.po (from translationproject.org)
Petr Písař [Wed, 31 Jul 2013 10:42:40 +0000 (12:42 +0200)] 
po: update cs.po (from translationproject.org)

10 years agomount: remove repeating words from mount.8
Karel Zak [Wed, 31 Jul 2013 10:40:55 +0000 (12:40 +0200)] 
mount: remove repeating words from mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodmesg: don't use pager for --follow
Karel Zak [Mon, 29 Jul 2013 11:48:20 +0000 (13:48 +0200)] 
dmesg: don't use pager for --follow

References: https://bugzilla.redhat.com/show_bug.cgi?id=984666
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolosetup: set errno for misaligned offsets
Karel Zak [Fri, 19 Jul 2013 15:05:31 +0000 (17:05 +0200)] 
losetup: set errno for misaligned offsets

References: https://bugs.archlinux.org/task/36189
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agomount: update xfs docs
Karel Zak [Tue, 16 Jul 2013 09:23:51 +0000 (11:23 +0200)] 
mount: update xfs docs

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agohwclock: remove references to adjtimex from man page
Karel Zak [Mon, 15 Jul 2013 16:04:00 +0000 (18:04 +0200)] 
hwclock: remove references to adjtimex from man page

The adjtimex is optional on many distros.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosfdisk: don't use word 'disk'.
Karel Zak [Mon, 15 Jul 2013 10:14:10 +0000 (12:14 +0200)] 
sfdisk: don't use word 'disk'.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agouuidd: add missing initializer [clang-analyzer]
Karel Zak [Tue, 9 Jul 2013 12:45:41 +0000 (14:45 +0200)] 
uuidd: add missing initializer [clang-analyzer]

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: fix memory leak [clang-analyzer]
Karel Zak [Tue, 9 Jul 2013 12:39:49 +0000 (14:39 +0200)] 
libmount: fix memory leak [clang-analyzer]

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosulogin: fix compiler warning
Karel Zak [Tue, 9 Jul 2013 12:32:05 +0000 (14:32 +0200)] 
sulogin: fix compiler warning

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocolumn: dereference of null pointer [clang-analyzer]
Sami Kerola [Sun, 7 Jul 2013 19:54:48 +0000 (20:54 +0100)] 
column: dereference of null pointer [clang-analyzer]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agoagetty: fix memory leak [clang-analyzer]
Sami Kerola [Sun, 7 Jul 2013 19:54:44 +0000 (20:54 +0100)] 
agetty: fix memory leak [clang-analyzer]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agosulogin: fix memory leak [clang-analyzer]
Sami Kerola [Sun, 7 Jul 2013 19:54:43 +0000 (20:54 +0100)] 
sulogin: fix memory leak [clang-analyzer]

And make code a little bit more robust.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agomkfs.cramfs: argument to free() is a constant address [clang-analyzer]
Sami Kerola [Sun, 7 Jul 2013 19:54:33 +0000 (20:54 +0100)] 
mkfs.cramfs: argument to free() is a constant address [clang-analyzer]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agolsblk: use devno to get mountpoint
Karel Zak [Mon, 8 Jul 2013 12:21:03 +0000 (14:21 +0200)] 
lsblk: use devno to get mountpoint

The device (for example LVM logical volume) could be renamed and then
the device name from /proc/self/mountinfo does not match with reality.
So, we also need to check devno. Unfortunately we cannot completely
rely on devno, because for example btrfs uses psudo device numbers.

References: https://bugzilla.redhat.com/show_bug.cgi?id=980463
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoFixes "getty: unrecognized option '--loginpause'"
kernc [Thu, 4 Jul 2013 15:02:57 +0000 (17:02 +0200)] 
Fixes "getty: unrecognized option '--loginpause'"

Usage incorrectly stated --loginpause is a valid option, where instead --login-pause is.

Also --no-hostname --> --nohostname.

10 years agofindmnt: avoid unused parameter warning
Karel Zak [Wed, 3 Jul 2013 10:42:06 +0000 (12:42 +0200)] 
findmnt: avoid unused parameter warning

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofindmnt: make udev usage more robust
Karel Zak [Mon, 1 Jul 2013 13:59:16 +0000 (15:59 +0200)] 
findmnt: make udev usage more robust

 $ findmnt -rn --target /home/kzak/.bashrc -o UUID

uses libudev to ask for UUID, unfortunately /home/kzak is DM device
and libudev expects sysfs-like names (e.g. dm-0). We have to convert
the name to kernel devname.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoexec_shell: add a license and touch up func def
Mike Frysinger [Fri, 28 Jun 2013 00:05:18 +0000 (20:05 -0400)] 
exec_shell: add a license and touch up func def

When this file was created, the standard license header was missed.
Add it using the same one from unshare.c.

The noreturn attribute is not needed since we include the header
which has it on the prototype.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agorenice: exit with non-zero value when arguments cause warnings
Sami Kerola [Sun, 16 Jun 2013 18:53:42 +0000 (19:53 +0100)] 
renice: exit with non-zero value when arguments cause warnings

This commit also fixes potential error counter wrap, which theoretically
could make command to exit with a success when it internally failed just
correct amount of times.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agofindmnt: test for fstype/options/maj:min before source and target
Karel Zak [Mon, 24 Jun 2013 11:28:06 +0000 (13:28 +0200)] 
findmnt: test for fstype/options/maj:min before source and target

This change allows to exclude for example NFS mountpoint:

  findmnt --fstab --target /mnt/foo --type nonfs

to stall on a stalled nfs mount.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoagetty: fix a kill/erase error in man page and improve clarity
Benno Schulenberg [Sat, 8 Jun 2013 18:10:41 +0000 (20:10 +0200)] 
agetty: fix a kill/erase error in man page and improve clarity

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agomount: fix mistaken word and some grammar in man page of mount
Benno Schulenberg [Sun, 9 Jun 2013 08:50:01 +0000 (10:50 +0200)] 
mount: fix mistaken word and some grammar in man page of mount

Reported-by: Krzysztof Żelechowski <giecrilj@stegny.2a.pl>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agomkfs.bfs: fix 64-Bit and endian problems
ihno [Fri, 7 Jun 2013 18:29:42 +0000 (20:29 +0200)] 
mkfs.bfs: fix 64-Bit and endian problems

[kzak@redhat.com: - use cpu_to_leXX() macros rather than htoleXX()]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: add support for the MicroBlaze architecture
Nathan Rossi [Fri, 7 Jun 2013 04:08:06 +0000 (14:08 +1000)] 
fdisk: add support for the MicroBlaze architecture

Add support to fdisk for the MicroBlaze architecture.

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
10 years agoeject: unlock door before issuing CDROMEJECT command
Aaron Lu [Thu, 6 Jun 2013 08:28:37 +0000 (16:28 +0800)] 
eject: unlock door before issuing CDROMEJECT command

If user has inserted a disc into the drive, the drive will normally be
locked. When using eject command to eject the drive, we need to unlock
the door first, or the CDROMEJECT command will fail.

Though the 2nd attmpt to eject the drive with eject_scsi will succeed,
it actually does two things: first to unlock the door and then to eject
the tray, both with the SG_IO ioctl. The problem is, Linux SCSI driver
keeps track of if a device is in locked state or not, if we go with
SG_IO to do the unlocking, the driver will not be aware of the unlocking
and would think the drive is locked while actually it has already been
unlocked by the first SG_IO command.

Fix this by issuing a unlock door command before the CDROMEJECT command
in cdrom_eject. Prior to this fix, the following output is expected when
there is a disc inside:

[aaron@aaronlu util-linux-2.22.2]$ eject -v /dev/sr0
eject: device name is `/dev/sr0'
eject: /dev/sr0: mounted on /run/media/aaron/CD_ROM
eject: /dev/sr0: is whole-disk device
eject: /dev/sr0: is removable device
eject: /run/media/aaron/CD_ROM: unmounting
eject: /dev/sr0: trying to eject using CD-ROM eject command
eject: CD-ROM eject command failed
eject: /dev/sr0: trying to eject using SCSI commands
eject: SCSI eject succeeded

After this fix, the following output is expected:
[aaron@aaronlu util-linux-2.22.2]$ ./eject -v /dev/sr0
lt-eject: device name is `/dev/sr0'
lt-eject: /dev/sr0: mounted on /run/media/aaron/CD_ROM
lt-eject: /dev/sr0: is whole-disk device
lt-eject: /dev/sr0: is removable device
lt-eject: /run/media/aaron/CD_ROM: unmounting
lt-eject: /dev/sr0: trying to eject using CD-ROM eject command
lt-eject: CD-ROM eject command succeeded

And the SCSI device's locked state is correct now.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
10 years agoFix broken list syntax.
Eric S. Raymond [Mon, 10 Jun 2013 21:51:31 +0000 (17:51 -0400)] 
Fix broken list syntax.

Bodiless .TP entries and unterminated .TP lists interfere with page
parsing.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoRestore use of correct alternation syntax using { | }.
Eric S. Raymond [Mon, 10 Jun 2013 21:18:15 +0000 (17:18 -0400)] 
Restore use of correct alternation syntax using { | }.

This is required in order for ther synopsis to be translated into the
corresponding XML markup.

10 years agoRe-layout a FILES section in the traditional style.
Eric S. Raymond [Mon, 10 Jun 2013 19:58:25 +0000 (15:58 -0400)] 
Re-layout a FILES section in the traditional style.

10 years agoRemove another .ti for .RS/.RE, and remove a .TP that broke list parsing.
Eric S. Raymond [Mon, 10 Jun 2013 19:55:45 +0000 (15:55 -0400)] 
Remove another .ti for .RS/.RE, and remove a .TP that broke list parsing.

10 years agoReplace .IP o with .IP \(bu, using the [nt]roff bullet character.
Eric S. Raymond [Mon, 10 Jun 2013 19:48:41 +0000 (15:48 -0400)] 
Replace .IP o with .IP \(bu, using the [nt]roff bullet character.

This will improve the quality of generated HTML. There is a cost,
which is that most terminal emulators will just display the bullet
as a (less visible) dot.  An alternative to this change would be
to use a * character for the bullet.

10 years agoReplace .ti operations with equivalent .RS/.RE pairs.
Eric S. Raymond [Mon, 10 Jun 2013 19:42:06 +0000 (15:42 -0400)] 
Replace .ti operations with equivalent .RS/.RE pairs.

This change makes automatic lifting to XML-DocBook possible, and
should enable generation of better-quality HTML from these pages.

10 years agomount: (deprecated) fix typo tailed->failed
Yuri Chornoivan [Wed, 29 May 2013 18:38:00 +0000 (21:38 +0300)] 
mount: (deprecated) fix typo tailed->failed

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
10 years agorunuser: update man page, add note about -l vs. -p
Karel Zak [Fri, 7 Jun 2013 09:26:46 +0000 (11:26 +0200)] 
runuser: update man page, add note about -l vs. -p

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agogetopt: add reference to /usr/share/docs to man page
Karel Zak [Tue, 28 May 2013 10:53:35 +0000 (12:53 +0200)] 
getopt: add reference to /usr/share/docs to man page

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: be robust for empty target/source strings
Karel Zak [Mon, 17 Jun 2013 11:02:15 +0000 (13:02 +0200)] 
libmount: be robust for empty target/source strings

 * lib/canonicalize.c: don't interpret empty strings as relative paths
 * libmount: more robust libmnt_table find function and debug messages

References: https://bugzilla.novell.com/show_bug.cgi?id=825150
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosu: ignore --preserve-environment, it's mutually exclusive to --login
Karel Zak [Wed, 29 May 2013 09:32:58 +0000 (11:32 +0200)] 
su: ignore --preserve-environment, it's mutually exclusive to --login

Addresses: http://bugs.gnu.org/10317
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: more robust options string parsing
Karel Zak [Thu, 30 May 2013 11:29:34 +0000 (13:29 +0200)] 
libmount: more robust options string parsing

 # mount -o=rw /dev/sdb /mnt/test
 mount: libmount/src/optmap.c:212: mnt_optmap_get_entry: Assertion `namelen' failed.
 Aborted (core dumped)

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=968786
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoagetty: don't remove ECHOCTL from c_lflag
Karel Zak [Mon, 3 Jun 2013 12:06:18 +0000 (14:06 +0200)] 
agetty: don't remove ECHOCTL from c_lflag

It's really unexpected that arrows keys move cursor when agetty/login
asks for login name or password.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=969458
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoagetty: update man page and usage()
Karel Zak [Mon, 3 Jun 2013 08:04:43 +0000 (10:04 +0200)] 
agetty: update man page and usage()

 - baud_rate is optional
 - agetty has been rewritten 2 years ago, so don't blame original
   authors in the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocal: fix -y output for UTF8
Karel Zak [Mon, 17 Jun 2013 16:08:01 +0000 (18:08 +0200)] 
cal: fix -y output for UTF8

... in the yearly() function is a static buffer where is not space for
multibyte headers.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agologin: use TCSANOW to remove HUPCL
Karel Zak [Wed, 5 Jun 2013 12:31:00 +0000 (14:31 +0200)] 
login: use TCSANOW to remove HUPCL

Fedora 19, kernel 3.9, systemd 204, telnetd with socket activation.

login(1) code:

        ttt.c_cflag &= ~HUPCL;
        tcsetattr(0, TCSAFLUSH, &ttt);

        close(STDIN_FILENO);
        close(STDOUT_FILENO);
        close(STDERR_FILENO);

        signal(SIGHUP, SIG_IGN);        /* so vhangup() wont kill us */
        vhangup();
        signal(SIGHUP, SIG_DFL);

strace :

ioctl(0, SNDCTL_TMR_CONTINUE or SNDRV_TIMER_IOCTL_GPARAMS or TCSETSF, {B9600 opost isig icanon echo ...}) = 0
close(0)                                = 0
close(1)                                = 0
close(2)                                = 0
--- SIGHUP {si_signo=SIGHUP, si_code=SI_KERNEL} ---
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=1, si_uid=0} ---
+++ killed by SIGTERM +++

It seems we get SIGHUP (and SIGTERM from systemd) before vhangup().
The problem occur sometimes.

I guess it's because TCSAFLUSH is not applied immediately, so it would
be probably better to use TCSANOW to make the code more robust.

References: https://bugzilla.redhat.com/show_bug.cgi?id=962145
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: release++ (v2.23.1) v2.23.1
Karel Zak [Tue, 28 May 2013 09:10:09 +0000 (11:10 +0200)] 
build-sys: release++ (v2.23.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update v2.23.1-ReleaseNotes
Karel Zak [Tue, 28 May 2013 09:08:06 +0000 (11:08 +0200)] 
docs: update v2.23.1-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: merge changes
Karel Zak [Tue, 28 May 2013 08:58:53 +0000 (10:58 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: update zh_CN.po (from translationproject.org)
Wylmer Wang [Tue, 28 May 2013 08:41:06 +0000 (10:41 +0200)] 
po: update zh_CN.po (from translationproject.org)

10 years agopo: update vi.po (from translationproject.org)
Trần Ngọc Quân [Tue, 28 May 2013 08:41:06 +0000 (10:41 +0200)] 
po: update vi.po (from translationproject.org)

10 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Tue, 28 May 2013 08:41:06 +0000 (10:41 +0200)] 
po: update nl.po (from translationproject.org)

10 years agotests: new warning fix
Gilles Espinasse [Mon, 13 May 2013 14:52:28 +0000 (16:52 +0200)] 
tests: new warning fix

2.23 added -Wstrict-prototypes check. Fix make check showing
CC tests/helpers/test_md5.o
tests/helpers/test_md5.c:8: warning: function declaration isn't a prototype

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
10 years agolib/tty: fix get_terminal_name() usage, cleanup code
Karel Zak [Tue, 28 May 2013 08:04:16 +0000 (10:04 +0200)] 
lib/tty: fix get_terminal_name() usage, cleanup code

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: always check for setns() and unshare() libs functions
Karel Zak [Tue, 21 May 2013 09:32:29 +0000 (11:32 +0200)] 
build-sys: always check for setns() and unshare() libs functions

 $ ./configure --disable-unshare
 $ make nsenter

  CC       sys-utils/nsenter.o
In file included from sys-utils/nsenter.c:36:0:
./include/namespace.h:31:19: error: static declaration of ‘unshare’ follows non-static declaration
In file included from /usr/include/sched.h:42:0,
                 from sys-utils/nsenter.c:23:
/usr/include/bits/sched.h:86:12: note: previous declaration of ‘unshare’ was here
make: *** [sys-utils/nsenter.o] Error 1

We have to always check for the libc function independently on
--disable-{unshare,nsenter} to avoid collision between local and libc
declarations.

Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosfdisk: don't call BLKRRPART for non-block devices
Karel Zak [Mon, 20 May 2013 11:10:52 +0000 (13:10 +0200)] 
sfdisk: don't call BLKRRPART for non-block devices

Reported-by: Bertrand Jacquin <beber@meleeweb.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agochcpu: clean up error messages
Karel Zak [Tue, 14 May 2013 21:33:59 +0000 (23:33 +0200)] 
chcpu: clean up error messages

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosulogin: clean up error messages
Karel Zak [Tue, 14 May 2013 21:29:09 +0000 (23:29 +0200)] 
sulogin: clean up error messages

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: add ReFS magic string
Karel Zak [Tue, 14 May 2013 13:51:35 +0000 (15:51 +0200)] 
libblkid: add ReFS magic string

Reported-by: "Richard W.M. Jones" <rjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoblkid: fix typo in ID_FS_AMBIVALEN=
Karel Zak [Tue, 14 May 2013 13:03:30 +0000 (15:03 +0200)] 
blkid: fix typo in ID_FS_AMBIVALEN=

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: don't ignore root fs on umount -a
Karel Zak [Tue, 14 May 2013 08:32:56 +0000 (10:32 +0200)] 
libmount: don't ignore root fs on umount -a

The release v2.22 (the new umount) introduces a regression when root
fs is excluded from umount --all. There is not reason for this
exception. The libmount should be smart enough to disable mtab update
after rootfs umount.

Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolib/tty: don't hardcode terminal fd in get_terminal_name()
Karel Zak [Mon, 13 May 2013 13:40:57 +0000 (15:40 +0200)] 
lib/tty: don't hardcode terminal fd in get_terminal_name()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agostandard SEE ALSO section of man pages
Mike Frysinger [Wed, 8 May 2013 22:12:04 +0000 (18:12 -0400)] 
standard SEE ALSO section of man pages

The standard format is to seperate each entry with a comma, and
for each one to be on a line by itself.  Most util-linux pages
follow this, but a few do not.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agolsblk: add SERIAL column
Karel Zak [Mon, 13 May 2013 11:33:41 +0000 (13:33 +0200)] 
lsblk: add SERIAL column

 ... to return short serial number of the disk (from udev db)

Addresses: https://github.com/karelzak/util-linux/issues/33
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolosetup: use warn_size() for regular files only
Karel Zak [Mon, 13 May 2013 09:00:47 +0000 (11:00 +0200)] 
losetup: use warn_size() for regular files only

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolib/loopdev: fix loopcxt_check_size() to work with blkdevs
Karel Zak [Mon, 13 May 2013 08:54:41 +0000 (10:54 +0200)] 
lib/loopdev: fix loopcxt_check_size() to work with blkdevs

The loopcxt_check_size() is workaround for kernels < v3.9, kernel has
been fixed by commit 541c742a7559eb65f0e36d3e2338c2ca532a3e61.

The function sets loopdev size according to backing file size. The
problem is that the backing file could be a block device where
stat.st_size is zero, so we have to use blkdev_get_size() for block
devices.

Addresses: https://bugs.archlinux.org/task/35193
Reported-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: do not use va_list in the Ask API
Karel Zak [Thu, 9 May 2013 11:06:02 +0000 (13:06 +0200)] 
libfdisk: do not use va_list in the Ask API

  # fdisk /dev/sda
  Welcome to fdisk (util-linux 2.23).

  [...]

  Command (m for help): a
  Segmentation fault (core dumped)

It's too fragile, the va_list implementation is architecture specific
and it seems we need such thing in libfdisk at all.

Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: use MS_SILENT for /{proc,etc}/filesystems
Karel Zak [Thu, 9 May 2013 07:22:50 +0000 (09:22 +0200)] 
libmount: use MS_SILENT for /{proc,etc}/filesystems

mount(8) needs to be doing silent mounts when doing this brute
forcing or when the filesystem is not explicitly specified.

Reported-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: use -Wno-clobbered for some BSD crap
Karel Zak [Tue, 7 May 2013 07:50:22 +0000 (09:50 +0200)] 
build-sys: use -Wno-clobbered for some BSD crap

 * extend UL_WARN_ADD() for accept non-default CFLAGS variable
 * add BSD_WARN_CFLAGS with -Wno-clobbered
 * use all this for pg(1) and more(1)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: fix blkid_parse_tag_string() to ignore incomplete tags
Karel Zak [Mon, 6 May 2013 15:20:03 +0000 (17:20 +0200)] 
libblkid: fix blkid_parse_tag_string() to ignore incomplete tags

fstab entry:

    FOO=     /       btrfs  defaults       1 1

Program received signal SIGABRT, Aborted.
0x00007f016ccd8819 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56   return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:196

Reported-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: add --disable-setterm
Karel Zak [Fri, 26 Apr 2013 11:47:54 +0000 (13:47 +0200)] 
build-sys: add --disable-setterm

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: release++ (v2.23) v2.23
Karel Zak [Thu, 25 Apr 2013 09:53:41 +0000 (11:53 +0200)] 
build-sys: release++ (v2.23)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update v2.23-ReleaseNotes
Karel Zak [Thu, 25 Apr 2013 09:52:32 +0000 (11:52 +0200)] 
docs: update v2.23-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update AUTHORS file
Karel Zak [Thu, 25 Apr 2013 09:50:12 +0000 (11:50 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: merge changes
Karel Zak [Thu, 25 Apr 2013 09:46:46 +0000 (11:46 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Thu, 25 Apr 2013 09:24:08 +0000 (11:24 +0200)] 
po: update uk.po (from translationproject.org)

10 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Thu, 25 Apr 2013 09:24:08 +0000 (11:24 +0200)] 
po: update pl.po (from translationproject.org)

10 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Thu, 25 Apr 2013 09:24:08 +0000 (11:24 +0200)] 
po: update nl.po (from translationproject.org)

10 years agopo: update hr.po (from translationproject.org)
Tomislav Krznar [Thu, 25 Apr 2013 09:24:08 +0000 (11:24 +0200)] 
po: update hr.po (from translationproject.org)

10 years agopo: update fr.po (from translationproject.org)
David Prévot [Thu, 25 Apr 2013 09:24:07 +0000 (11:24 +0200)] 
po: update fr.po (from translationproject.org)

10 years agopo: update da.po (from translationproject.org)
Joe Hansen [Thu, 25 Apr 2013 09:24:07 +0000 (11:24 +0200)] 
po: update da.po (from translationproject.org)

10 years agopo: update cs.po (from translationproject.org)
Petr Písař [Thu, 25 Apr 2013 09:24:07 +0000 (11:24 +0200)] 
po: update cs.po (from translationproject.org)

10 years agotests: make mount tests backwardly compatible with deprecated-mount/
Karel Zak [Thu, 25 Apr 2013 09:07:05 +0000 (11:07 +0200)] 
tests: make mount tests backwardly compatible with deprecated-mount/

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agomount: (deprecated) check loopcxt_ return values
Karel Zak [Thu, 25 Apr 2013 09:06:12 +0000 (11:06 +0200)] 
mount: (deprecated) check loopcxt_ return values

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agomount: (deprecated) remove duplicate xstrndup()
Karel Zak [Thu, 25 Apr 2013 09:05:33 +0000 (11:05 +0200)] 
mount: (deprecated) remove duplicate xstrndup()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: use 'check' for all utils with dependencies
Karel Zak [Thu, 25 Apr 2013 07:26:43 +0000 (09:26 +0200)] 
build-sys: use 'check' for all utils with dependencies

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoAUTHORS: fix prlimit typo
Davidlohr Bueso [Wed, 24 Apr 2013 03:28:30 +0000 (20:28 -0700)] 
AUTHORS: fix prlimit typo

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
10 years agolibfdisk: gpt: remove leftover comments
Davidlohr Bueso [Wed, 24 Apr 2013 03:27:26 +0000 (20:27 -0700)] 
libfdisk: gpt: remove leftover comments

I must have left those in some commit.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
10 years agortcwake: pass -h to shutdown
Mike Frysinger [Wed, 24 Apr 2013 03:23:21 +0000 (23:23 -0400)] 
rtcwake: pass -h to shutdown

The sysvinit shutdown requires you use -h when using -H or -P.
Other inits just don't seem to care.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agobuild-sys: fix non-linux build
Samuel Thibault [Wed, 10 Apr 2013 22:43:27 +0000 (00:43 +0200)] 
build-sys: fix non-linux build

Make enabling fdformat depend on being a linux build.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
10 years agodmesg: minor cleanup of EXCL_xxx_ERR macros
Andrii Bordunov [Thu, 18 Apr 2013 09:24:01 +0000 (12:24 +0300)] 
dmesg: minor cleanup of EXCL_xxx_ERR macros

Delete EXCL_ACT_ERR and EXCL_SYS_ERR defines:
usage is removed in 43d2eeef5dd3a64c372dbf60e4a32aa9e97b4645:
    "dmesg: use err_exclusive_options()"

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agortcwake: add support for "freeze" mode
Karel Zak [Tue, 23 Apr 2013 11:20:15 +0000 (13:20 +0200)] 
rtcwake: add support for "freeze" mode

Supported by Linux since 3.9 (upstream commit
7e73c5ae6e7991a6c01f6d096ff8afaef4458c36).

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoumount: use devno to identify --all-target devices
Karel Zak [Tue, 23 Apr 2013 08:25:02 +0000 (10:25 +0200)] 
umount: use devno to identify --all-target devices

 # mount -t tmpfs tmp /mnt/A
 # mount --bind /mnt/A /mnt/B
 # mount -t tmpfs tmp /mnt/C

the command:

  umount --all-targets /mnt/A

has to umount only A and B, but not C. The C is a another filesystem.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (gpt) fix EFI UUID usage
Karel Zak [Thu, 18 Apr 2013 13:45:25 +0000 (15:45 +0200)] 
libfdisk: (gpt) fix EFI UUID usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: fix list types
Karel Zak [Thu, 18 Apr 2013 12:38:49 +0000 (14:38 +0200)] 
fdisk: fix list types

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (gpt) fix valid_pmbr()
Karel Zak [Thu, 18 Apr 2013 10:44:00 +0000 (12:44 +0200)] 
libfdisk: (gpt) fix valid_pmbr()

Signed-off-by: Karel Zak <kzak@redhat.com>