]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
12 years agogetopt: fix normalize() usage [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:38:07 +0000 (14:38 +0100)] 
getopt: fix normalize() usage [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosu: make code more robust [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:33:17 +0000 (14:33 +0100)] 
su: make code more robust [coverity scan]

 ... and more readable for static analyzers

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoagetty: make \{4,6} issue file code more robust [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:33:17 +0000 (14:33 +0100)] 
agetty: make \{4,6} issue file code more robust [coverity scan]

 ... and more readable for static analyzers

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:28:42 +0000 (14:28 +0100)] 
libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: fix __mnt_cache_find_tag_value() [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:22:31 +0000 (14:22 +0100)] 
libmount: fix __mnt_cache_find_tag_value() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolsblk: fix hctl buffer usage [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:17:52 +0000 (14:17 +0100)] 
lsblk: fix hctl buffer usage [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolsblk: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:13:12 +0000 (14:13 +0100)] 
lsblk: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agologin: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:13:00 +0000 (14:13 +0100)] 
login: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:12:47 +0000 (14:12 +0100)] 
libfdisk: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:12:37 +0000 (14:12 +0100)] 
libblkid: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofsck.cramfs: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:12:23 +0000 (14:12 +0100)] 
fsck.cramfs: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: fix NTFS prober on big-endian machines
Karel Zak [Wed, 27 Mar 2013 10:37:57 +0000 (11:37 +0100)] 
libblkid: fix NTFS prober on big-endian machines

 MFT_RECORD_ATTR_VOLUME_NAME  = cpu_to_le32(0x60),
                                 ^
./include/bitops.h:94:36: error: braced-group within expression
allowed only inside a function

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: fix user-mount by root for mount.<type> helpers
Karel Zak [Tue, 26 Mar 2013 15:05:07 +0000 (16:05 +0100)] 
libmount: fix user-mount by root for mount.<type> helpers

Append options like "exec" "suid" and "dev" to mount.<type> helpers
command line if the options are in fstab. This is relevant for root
user who calls mount(8) for fstab entries with "user,exec" etc.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: add note about /var/lib/hwclock to TODO
Karel Zak [Tue, 26 Mar 2013 12:48:25 +0000 (13:48 +0100)] 
docs: add note about /var/lib/hwclock to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoschedutils: don't apply -a without -p
Daniel Stodden [Mon, 25 Mar 2013 09:33:59 +0000 (02:33 -0700)] 
schedutils: don't apply -a without -p

The unsuspecting user might use taskset -a mask command. Behavior then
is to exec with no affinity applied at all. Better handled by ignoring
all_tasks if no pid was given.

Signed-off-by: Daniel Stodden <daniel.stodden@gmail.com>
12 years agortcwake: clean up usage
Karel Zak [Tue, 26 Mar 2013 11:14:31 +0000 (12:14 +0100)] 
rtcwake: clean up usage

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoinclude/pathnames: rename _PATH_ADJPATH to _PATH_ADJTIME
Karel Zak [Tue, 26 Mar 2013 10:45:45 +0000 (11:45 +0100)] 
include/pathnames: rename _PATH_ADJPATH to _PATH_ADJTIME

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agortcwake: add --adjfile command line option
Karel Zak [Tue, 26 Mar 2013 10:16:12 +0000 (11:16 +0100)] 
rtcwake: add --adjfile command line option

 ... for better compatibility with hwclock.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosulogin: couple of obvious fixes for non-linux systems
Samuel Thibault [Fri, 22 Mar 2013 13:41:47 +0000 (14:41 +0100)] 
sulogin: couple of obvious fixes for non-linux systems

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: arch is gone, use delpart as usage() function example
Sami Kerola [Thu, 21 Mar 2013 21:47:15 +0000 (21:47 +0000)] 
docs: arch is gone, use delpart as usage() function example

The arch.c was removed in commit 27abd809.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agoblkid: use xalloc.h when possible
Sami Kerola [Thu, 21 Mar 2013 21:47:14 +0000 (21:47 +0000)] 
blkid: use xalloc.h when possible

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agomount: improve --move error message on shared trees
Karel Zak [Mon, 25 Mar 2013 12:58:53 +0000 (13:58 +0100)] 
mount: improve --move error message on shared trees

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: add mnt_table_find_mountpoint()
Karel Zak [Mon, 25 Mar 2013 12:56:31 +0000 (13:56 +0100)] 
libmount: add mnt_table_find_mountpoint()

This is more robust implementation of mnt_get_mountpoint() that does
not ignore bind mountpoints (mount --bind /mnt /mnt) as it does not
depend on st_dev numbers.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: make libmount.h consistent with code
Karel Zak [Mon, 25 Mar 2013 12:40:06 +0000 (13:40 +0100)] 
libmount: make libmount.h consistent with code

The function with nonnull attribute are silently optimized by gcc so
all "if (foo)" are removed if the "foo" is expected as non-null. It
make the code less usable and robust in some situations.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: umount crashes when trying to umount a non-mountpoint
Karel Zak [Mon, 25 Mar 2013 08:17:52 +0000 (09:17 +0100)] 
libmount: umount crashes when trying to umount a non-mountpoint

Reported-by: Mantas Mikulėnas <grawity@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: release++ (v2.23-rc1) v2.23-rc1
Karel Zak [Fri, 22 Mar 2013 11:34:28 +0000 (12:34 +0100)] 
build-sys: release++ (v2.23-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: keep libuser optional
Karel Zak [Fri, 22 Mar 2013 11:33:27 +0000 (12:33 +0100)] 
build-sys: keep libuser optional

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: upadte v2.23-ReleaseNotes
Karel Zak [Fri, 22 Mar 2013 09:17:10 +0000 (10:17 +0100)] 
docs: upadte v2.23-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: add v2.23-ReleaseNotes
Karel Zak [Fri, 22 Mar 2013 00:01:17 +0000 (01:01 +0100)] 
docs: add v2.23-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomount: fix typos in man page
Karel Zak [Thu, 21 Mar 2013 22:56:35 +0000 (23:56 +0100)] 
mount: fix typos in man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: update AUTHORS file
Karel Zak [Thu, 21 Mar 2013 22:29:45 +0000 (23:29 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopo: merge changes
Karel Zak [Thu, 21 Mar 2013 22:19:54 +0000 (23:19 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopo: add hr.po (from translationproject.org)
Tomislav Krznar [Thu, 21 Mar 2013 22:08:23 +0000 (23:08 +0100)] 
po: add hr.po (from translationproject.org)

12 years agopo: update vi.po (from translationproject.org)
Trần Ngọc Quân [Thu, 21 Mar 2013 22:08:23 +0000 (23:08 +0100)] 
po: update vi.po (from translationproject.org)

12 years agopo: update fr.po (from translationproject.org)
David Prévot [Thu, 21 Mar 2013 22:08:23 +0000 (23:08 +0100)] 
po: update fr.po (from translationproject.org)

12 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Thu, 21 Mar 2013 22:08:23 +0000 (23:08 +0100)] 
po: update cs.po (from translationproject.org)

12 years agotests: update build tests
Karel Zak [Thu, 21 Mar 2013 21:35:11 +0000 (22:35 +0100)] 
tests: update build tests

 * remove ld-linux-* from output
 * findmnt linked with libudev
 * lslocks linked with libmount
 * uuidd linked with librt
 * static binaries are no more enabled by default
 * chfn/chsh linked with libuser
 * add nsenter, runuser, setpriv

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agotests: add chfnsh build tests
Karel Zak [Thu, 21 Mar 2013 21:34:35 +0000 (22:34 +0100)] 
tests: add chfnsh build tests

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: set dependence fdisk -> libfdisk -> libuuid
Karel Zak [Thu, 21 Mar 2013 12:22:10 +0000 (13:22 +0100)] 
build-sys: set dependence fdisk -> libfdisk -> libuuid

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: lslocks depends on libmount
Karel Zak [Thu, 21 Mar 2013 12:13:23 +0000 (13:13 +0100)] 
build-sys: lslocks depends on libmount

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: don't use libs from pkg-config from libuser
Karel Zak [Thu, 21 Mar 2013 12:12:52 +0000 (13:12 +0100)] 
build-sys: don't use libs from pkg-config from libuser

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: don't use nested BUILD_*
Karel Zak [Thu, 21 Mar 2013 12:11:09 +0000 (13:11 +0100)] 
build-sys: don't use nested BUILD_*

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agohwclock: cleanup _() usage in synchronize_to_clock_tick_rtc()
Karel Zak [Thu, 21 Mar 2013 07:56:15 +0000 (08:56 +0100)] 
hwclock: cleanup _() usage in synchronize_to_clock_tick_rtc()

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agohwclock: don't confuse users with select() timeout warning
Karel Zak [Thu, 21 Mar 2013 07:51:22 +0000 (08:51 +0100)] 
hwclock: don't confuse users with select() timeout warning

Reported-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoraw: fix "Error setting raw device: Success"
Karel Zak [Thu, 21 Mar 2013 07:23:36 +0000 (08:23 +0100)] 
raw: fix "Error setting raw device: Success"

 # raw /dev/raw/raw1 253 40
 raw: Error setting raw device:Success

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=923820
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: remove unwanted operator [smatch scan]
Karel Zak [Thu, 21 Mar 2013 07:12:35 +0000 (08:12 +0100)] 
fdisk: remove unwanted operator [smatch scan]

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoipcs: fix compiler warning [clang -Wuninitialized]
Karel Zak [Wed, 20 Mar 2013 14:20:47 +0000 (15:20 +0100)] 
ipcs: fix compiler warning [clang -Wuninitialized]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoscript: use __noreturn__ for really last function [clang -Winvalid-noreturn]
Karel Zak [Wed, 20 Mar 2013 14:17:13 +0000 (15:17 +0100)] 
script: use __noreturn__ for really last function [clang -Winvalid-noreturn]

Use 'noreturn' for done() only.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: check for security_get_initial_context()
Karel Zak [Wed, 20 Mar 2013 13:59:21 +0000 (14:59 +0100)] 
build-sys: check for security_get_initial_context()

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: (gpt) rmeove xalloc calls
Karel Zak [Wed, 20 Mar 2013 13:46:03 +0000 (14:46 +0100)] 
libfdisk: (gpt) rmeove xalloc calls

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoremove duplicate includes
Karel Zak [Wed, 20 Mar 2013 13:40:19 +0000 (14:40 +0100)] 
remove duplicate includes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: add AVAILABILITY section to isosize man page, and tweak wording
Benno Schulenberg [Sun, 17 Mar 2013 21:23:45 +0000 (22:23 +0100)] 
docs: add AVAILABILITY section to isosize man page, and tweak wording

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: make the section AVAILABILITY always come last in man pages
Benno Schulenberg [Sun, 17 Mar 2013 21:05:19 +0000 (22:05 +0100)] 
docs: make the section AVAILABILITY always come last in man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: normalize formatting of lslocks man page
Benno Schulenberg [Sun, 17 Mar 2013 20:59:21 +0000 (21:59 +0100)] 
docs: normalize formatting of lslocks man page

Also alphabetize the options and improve some wording.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: normalize formatting of wipefs man page
Benno Schulenberg [Sun, 17 Mar 2013 19:39:12 +0000 (20:39 +0100)] 
docs: normalize formatting of wipefs man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: normalize formatting of findmnt man page
Benno Schulenberg [Mon, 4 Mar 2013 20:01:29 +0000 (21:01 +0100)] 
docs: normalize formatting of findmnt man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: sort the options in findmnt man page alphabetically
Benno Schulenberg [Fri, 1 Mar 2013 21:50:05 +0000 (22:50 +0100)] 
docs: sort the options in findmnt man page alphabetically

Also improve wording and formatting a bit.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agoblkid: also accept -V for displaying version information
Benno Schulenberg [Fri, 1 Mar 2013 21:18:30 +0000 (22:18 +0100)] 
blkid: also accept -V for displaying version information

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: improve wording and formatting of blkid man page
Benno Schulenberg [Fri, 1 Mar 2013 21:11:52 +0000 (22:11 +0100)] 
docs: improve wording and formatting of blkid man page

Furthermore, explain the device argument right at the beginning,
since it is not an option, and alphabetize -k.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agolib/mbsalign: correct license header from GPLv[23] to LGPLv2+
Pádraig Brady [Fri, 15 Mar 2013 09:48:37 +0000 (09:48 +0000)] 
lib/mbsalign: correct license header from GPLv[23] to LGPLv2+

* lib/mbsalign.c: s/GPLv3/LGPLv2+/
* include/mbsalign.h: s/GPLv2/LGPLv2+/
* README.licensing: Remove mention GPLv3 as it's not actually used.

12 years agowhereis: canonicalize directories paths
Karel Zak [Wed, 20 Mar 2013 10:52:35 +0000 (11:52 +0100)] 
whereis: canonicalize directories paths

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agowipefs: add -f to getopt_long()
Karel Zak [Tue, 19 Mar 2013 21:53:16 +0000 (22:53 +0100)] 
wipefs: add -f to getopt_long()

Reported-by: Dan Horák <dhorak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: add wipefs feature request to TODO
Karel Zak [Tue, 19 Mar 2013 21:45:51 +0000 (22:45 +0100)] 
docs: add wipefs feature request to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: generic whereis.1 clean up
Sami Kerola [Sat, 16 Mar 2013 21:36:02 +0000 (21:36 +0000)] 
docs: generic whereis.1 clean up

Align with howto-man-page.txt, and more importantly remove out dated 'SEE
ALSO' and 'BUGS' sections.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agowhereis: support MANPATH environment variable
Sami Kerola [Sat, 16 Mar 2013 21:05:24 +0000 (21:05 +0000)] 
whereis: support MANPATH environment variable

The MANPATH has been around long enough that it can be added to whereis
default search path.

Reference: manpath(1)
Addresses: http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agowhereis: align with howto-usage-function.txt
Sami Kerola [Sat, 16 Mar 2013 20:25:17 +0000 (20:25 +0000)] 
whereis: align with howto-usage-function.txt

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agowhereis: add search scope listing option
Sami Kerola [Sat, 16 Mar 2013 20:12:49 +0000 (20:12 +0000)] 
whereis: add search scope listing option

Mostly useful when debugging why the command does, or does not, work.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agowhereis: rewrite most of the command
Sami Kerola [Wed, 13 Mar 2013 22:27:12 +0000 (22:27 +0000)] 
whereis: rewrite most of the command

The earlier code gave little or no change to fix bugs and improve the
command.  This rewrite attempts to make further patching easier.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Co-Author: Karel Zak <kzak@redhat.com>

12 years agodocs: add TB to list of supported suffixes
Karel Zak [Mon, 18 Mar 2013 17:31:07 +0000 (18:31 +0100)] 
docs: add TB to list of supported suffixes

Reported-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: cleanup TODO
Karel Zak [Mon, 18 Mar 2013 16:07:39 +0000 (17:07 +0100)] 
docs: cleanup TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodmesg: use $PAGER for --human output, add --nopager
Karel Zak [Mon, 18 Mar 2013 13:05:24 +0000 (14:05 +0100)] 
dmesg: use $PAGER for --human output, add --nopager

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodmesg: add --human
Karel Zak [Mon, 18 Mar 2013 11:38:28 +0000 (12:38 +0100)] 
dmesg: add --human

 * enable --reltime
 * enable --color
 * a little bit cleanup main()

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodmesg: more colors, more fun
Karel Zak [Mon, 18 Mar 2013 11:25:03 +0000 (12:25 +0100)] 
dmesg: more colors, more fun

 * colorize subsystem prefix
 * colorize time
 * colorize by keywords (now "segfault" only)

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agohwclock: make hwclock leap-second-aware
Joseph Parmelee [Mon, 18 Mar 2013 04:48:57 +0000 (22:48 -0600)] 
hwclock: make hwclock leap-second-aware

Attached is a patch file leap_seconds.patch against util-linux-2.22.2
that allows leap seconds to be included in hwclock --show or --hctosys.
The current code uses the default UTC zonefile in reading the hardware
RTC with mktime().  This zonefile usually does not include leap
seconds.  As of this date there have been a total of 25 leap seconds
added since the epoch (start of 1970).  This is particularly a problem
for systems using ntp to maintain their system clocks because ntp does
take leap seconds into account.  A user can specify a leap-second-aware
zonefile via /etc/localtime.  By defining the environment variable
TZUTC, mktime() can be induced to use a matching UTC zonefile that
includes leap seconds.  The default behavior (TZUTC undefined) is
unchanged.

Regards,

Joseph Parmelee
jparmele at wildbear.com

12 years agofsck.cramfs: fix compiler warnings
Karel Zak [Fri, 15 Mar 2013 14:33:23 +0000 (15:33 +0100)] 
fsck.cramfs: fix compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: update year
Karel Zak [Fri, 15 Mar 2013 14:18:22 +0000 (15:18 +0100)] 
docs: update year

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: clean up header file
Karel Zak [Fri, 15 Mar 2013 13:23:04 +0000 (14:23 +0100)] 
libmount: clean up header file

 * don't teach people C by header files, so use warn_unused_result
   attribute only on places where we return allocated memory (to avoid
   leaks in applications).

 * merge multiple function attributes to the one list to make it
   usable with gtk-doc

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: clean up header file
Karel Zak [Fri, 15 Mar 2013 13:23:04 +0000 (14:23 +0100)] 
libblkid: clean up header file

 * don't teach people C by header files, so use warn_unused_result
   attribute only on places where we return allocated memory (to avoid
   leaks in applications).

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: inform gtk-doc about __ul_attribute__
Karel Zak [Fri, 15 Mar 2013 13:58:08 +0000 (14:58 +0100)] 
build-sys: inform gtk-doc about __ul_attribute__

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: fix docs comment
Karel Zak [Fri, 15 Mar 2013 11:47:53 +0000 (12:47 +0100)] 
libblkid: fix docs comment

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agochkdupexe: remove, deprecated for years
Karel Zak [Thu, 14 Mar 2013 12:34:11 +0000 (13:34 +0100)] 
chkdupexe: remove, deprecated for years

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoarch: remove the command, deprecated since 2.13, use coreutils version
Karel Zak [Thu, 14 Mar 2013 11:22:11 +0000 (12:22 +0100)] 
arch: remove the command, deprecated since 2.13, use coreutils version

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofindmnt: add FREQ and PASSNO columns
Karel Zak [Thu, 14 Mar 2013 09:50:37 +0000 (10:50 +0100)] 
findmnt: add FREQ and PASSNO columns

 ... to provide all information from fstab.

Reported-by: Roger Leigh <rleigh@codelibre.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agokill: support --list=<signal>
Karel Zak [Wed, 13 Mar 2013 15:02:55 +0000 (16:02 +0100)] 
kill: support --list=<signal>

The '=' is expected for optional arguments and required in procps version.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agokill: add pretty printed list output (for compatibility with procps)
Sami Kerola [Tue, 12 Mar 2013 21:18:13 +0000 (21:18 +0000)] 
kill: add pretty printed list output (for compatibility with procps)

 * add -L, --table

References: http://www.freelists.org/post/procps/kill1-consolidation
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agonamespace.h: Fix typo: s/CLONE_NEWSNS/CLONE_NEWNS/
Josh Triplett [Fri, 8 Mar 2013 19:43:17 +0000 (11:43 -0800)] 
namespace.h: Fix typo: s/CLONE_NEWSNS/CLONE_NEWNS/

This typo causes namespace.h to always unconditionally define
CLONE_NEWNS rather than using the system definition.

Bug present since the initial version of unshare in commit
4205f1fda1ac32046125a2e0f3937b666186bfab.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Anton Cherkashyn <mail@antonc.com>
12 years agoinclude/timer: return setitimer return value
Karel Zak [Wed, 13 Mar 2013 13:07:23 +0000 (14:07 +0100)] 
include/timer: return setitimer return value

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofsfreeze: check for collision between options
Karel Zak [Wed, 13 Mar 2013 12:07:32 +0000 (13:07 +0100)] 
fsfreeze: check for collision between options

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoinclude/optutils: make collisions detection between options more robust
Karel Zak [Wed, 13 Mar 2013 12:04:02 +0000 (13:04 +0100)] 
include/optutils: make collisions detection between options more robust

 - don't rely on the correct ul_excl_t usage
 - don't print --(null) for non-existing long options

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofsfreeze: clean up usage(), add -V
Karel Zak [Wed, 13 Mar 2013 11:32:30 +0000 (12:32 +0100)] 
fsfreeze: clean up usage(), add -V

 - clean up usage()
 - add -V,--version
 - print usage() if not action specified
 - update man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoflock: use include/timer.h
Karel Zak [Wed, 13 Mar 2013 11:13:55 +0000 (12:13 +0100)] 
flock: use include/timer.h

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoinclude: add timer.h
Karel Zak [Wed, 13 Mar 2013 11:13:11 +0000 (12:13 +0100)] 
include: add timer.h

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoflock: use strtotimeval() from libcommon
Karel Zak [Wed, 13 Mar 2013 10:52:34 +0000 (11:52 +0100)] 
flock: use strtotimeval() from libcommon

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib/strutils: add strtotimeval_or_err()
Karel Zak [Wed, 13 Mar 2013 10:51:15 +0000 (11:51 +0100)] 
lib/strutils: add strtotimeval_or_err()

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agokill: use new API from lib/procutils.c
Karel Zak [Tue, 12 Mar 2013 16:40:31 +0000 (17:40 +0100)] 
kill: use new API from lib/procutils.c

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib/procutils: add simple API to scan /proc/PID/*
Karel Zak [Tue, 12 Mar 2013 16:24:14 +0000 (17:24 +0100)] 
lib/procutils: add simple API to scan /proc/PID/*

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agotests: move fallocate test file
Karel Zak [Tue, 12 Mar 2013 15:08:23 +0000 (16:08 +0100)] 
tests: move fallocate test file

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agotests: move tailf test input
Karel Zak [Tue, 12 Mar 2013 14:56:49 +0000 (15:56 +0100)] 
tests: move tailf test input

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib/procutils: test refactoring
Karel Zak [Tue, 12 Mar 2013 14:45:59 +0000 (15:45 +0100)] 
lib/procutils: test refactoring

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: add long options and tidy up kill.1
Sami Kerola [Thu, 7 Mar 2013 23:05:48 +0000 (23:05 +0000)] 
docs: add long options and tidy up kill.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>