summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* script: fix start message showing in output file when -q is onRui Zhao (renyuneyun)2017-04-051-1/+2
| | | | Signed-off-by: Rui Zhao (renyuneyun) <renyuneyun@gmail.com>
* docs: update Documentation/deprecated.txtKarel Zak2017-04-041-5/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'hwclock-date7-3' of github.com:jwpi/util-linuxKarel Zak2017-04-045-472/+120Star
|\ | | | | | | | | | | | | | | | | | | * 'hwclock-date7-3' of github.com:jwpi/util-linux: hwclock: remove unused 'silent' arg hwclock: remove dead cmos code hwclock: improve cmos message strings hwclock: remove unused atomic arg in cmos hwclock: remove unused cmos ctl structs hwclock: remove alpha cmos
| * hwclock: remove unused 'silent' argJ William Piggott2017-03-313-14/+10Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'silent' argument for get_epoch_rtc() was used to silence error messages when querying the rtc driver for an alpha epoch while using cmos direct access. Alpha cmos has since been removed so 'silent' is no longer used. * sys-utils/hwclock.h: remove 'silent' argument * sys-utils/hwclock.c: same * sys-utils/hwclock-rtc.c: same Signed-off-by: J William Piggott <elseifthen@gmx.com>
| * hwclock: remove dead cmos codeJ William Piggott2017-03-311-17/+0Star
| | | | | | | | | | | | * hwclock-cmos.c: remove unused 'century' code. Signed-off-by: J William Piggott <elseifthen@gmx.com>
| * hwclock: improve cmos message stringsJ William Piggott2017-03-311-5/+4Star
| | | | | | | | | | | | * sys-utils/hwclock-cmos.c: improve message strings Signed-off-by: J William Piggott <elseifthen@gmx.com>
| * hwclock: remove unused atomic arg in cmosJ William Piggott2017-03-311-6/+4Star
| | | | | | | | | | | | * sys-utils/hwclock-cmos.c: remove unused arg for atomic() Signed-off-by: J William Piggott <elseifthen@gmx.com>
| * hwclock: remove unused cmos ctl structsJ William Piggott2017-03-311-44/+39Star
| | | | | | | | | | | | | | | | | | The hwclock-cmos.c ctl structs were only used for the since removed alpha code. * sys-utils/hwclock-cmos.c: remove unused ctl structs Signed-off-by: J William Piggott <elseifthen@gmx.com>
| * hwclock: remove alpha cmosJ William Piggott2017-03-314-395/+72Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove alpha direct I/O access, use RTC instead: http://marc.info/?l=util-linux-ng&m=141682406902804 Resolves the alpha 2020 issue for util-linux: http://marc.info/?l=util-linux-ng&m=148387021519787 Now it is only the kernel's RTC problem. * sys-utils/hwclock.c: remove alpha cmos * sys-utils/hwclock-cmos.c: same * sys-utils/hwclock.h: same * sys-utils/hwclock.8.in: same Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | Merge branch 'tailf-removal' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2017-04-0430-480/+0Star
|\ \ | | | | | | | | | | | | * 'tailf-removal' of https://github.com/kerolasa/lelux-utiliteetit: tailf: remove deprecated utility
| * | tailf: remove deprecated utilitySami Kerola2017-04-0230-480/+0Star
| |/ | | | | | | | | | | | | | | March 2017 is gone, it is time to remove this utility as scheduled in earlier commit, and promised in manual page. Reference: 3f8478a71ccde6883d4c81b7e65561a106653b28 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | Merge branch '2017wk13' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2017-04-043-73/+81
|\ \ | | | | | | | | | | | | | | | | | | | | | * '2017wk13' of https://github.com/kerolasa/lelux-utiliteetit: docs: improve agetty.8 manual page agetty: make --remote to forward --nohostname as -H to login lib/cpuset: stop changing variable that is not read agetty: remove variable that is set but not read
| * | docs: improve agetty.8 manual pageSami Kerola2017-04-031-61/+68
| | | | | | | | | | | | | | | Reviewed-by: J William Piggott <elseifthen@gmx.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | agetty: make --remote to forward --nohostname as -H to loginSami Kerola2017-04-032-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this change an attempt to remove hostname printing required following rather clumsy agetty invocation. /sbin/agetty --nohostname --login-options '/bin/login -H -- \u' After the change --nohostname behaves similar way with --host option, that is when combined with --remote the effect is passed to login(1). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | lib/cpuset: stop changing variable that is not readSami Kerola2017-04-011-1/+0Star
| | | | | | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | agetty: remove variable that is set but not readSami Kerola2017-04-011-7/+2Star
| |/ | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | Merge branch 'fix-ipcs-shmall-overflow' of ↵Karel Zak2017-04-043-8/+14
|\ \ | | | | | | | | | | | | | | | | | | https://github.com/rudimeier/util-linux * 'fix-ipcs-shmall-overflow' of https://github.com/rudimeier/util-linux: ipcs: make shmall overflow a bit less worse
| * | ipcs: make shmall overflow a bit less worseRuediger Meier2017-04-033-8/+14
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Still no large integer support but on overflow we print now the largest possible value, maybe even the largest one which makes sense at all. So on x86_64 systems we'll see now: $ echo "4503599627370496" > /proc/sys/kernel/shmall $ ipcs -m -l | grep "max total" max total shared memory (kbytes) = 18014398509481980 rather than this: $ ipcs -m -l | grep "max total" max total shared memory (kbytes) = 0 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | losetup.8: Reorder options documentationFrederick Grose2017-04-042-48/+44Star
| | | | | | | | | | | | | | | | | | | | | | | | Reorder options to match onboard help and group functionally. Include some missing optional arguments. [kzak@redhat.com: - don't include available columns in man page, - add comments to the usage() - fix order in usage() - fix typo in usage()] Signed-off-by: Karel Zak <kzak@redhat.com>
* | zramctl: be more specific about default outputKarel Zak2017-04-041-3/+3
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lib/strutils: fix typos in huge size suffixesKarel Zak2017-04-031-3/+3
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add --mountpoint to findmnt callsKarel Zak2017-03-313-5/+5
| | | | | | ... if necessary to make things more robust. Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: remove unnecessary variableSami Kerola2017-03-311-3/+0Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: remove 1994 Award BIOS workaroundJ William Piggott2017-03-313-100/+1Star
| | | | | | | | | | | | Remove the 1994 Award BIOS bug workaround as previously discussed more than two years ago: http://marc.info/?l=util-linux-ng&m=141682406902804&w=2 * sys-utils/hwclock.c: remove badyear option * sys-utils/hwclock.h: same * sys-utils/hwclock.8.in: same Signed-off-by: J William Piggott <elseifthen@gmx.com>
* test: fix mountpoint device check in libmount/loopRuediger Meier2017-03-311-12/+15
| | | | | | | | This test could fail if the build directory is somehow exoticly mounted (shared bind mounts, symlinks). CC: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lscpu: fix mem leak [coverity scan]Karel Zak2017-03-311-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: check return code [coverity scan]Karel Zak2017-03-311-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* zramctl: make mm_stat parser more robustKarel Zak2017-03-301-2/+6
| | | | | | | | Let's fallback to attribute files if mm_stat file is incomplete. It should not happen, but I have seen RHEL7 kernel where is no num_migrated/pages_compacted attribute... Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: fix typoKarel Zak2017-03-271-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: define columns for fincore testKarel Zak2017-03-271-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: fix characters reorder in login promptKarel Zak2017-03-273-16/+38
| | | | | | | | | | | | | | The current agetty uses TIOCSTI ioctl to return already read chars from login name back to the terminal (without read() before tcsetattr() we will lost data already written by user). The ioctl based solution is fragile due to race -- we can return chars when terminal already contains another new chars. The result is reordered chars in login name. The solution is to use extra buffer for already read data. Reported-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* unshare: add note about persisten PID namespacesKarel Zak2017-03-271-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fincore: add column RESKarel Zak2017-03-272-6/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove status=none dd(1) from fincoreKarel Zak2017-03-241-1/+4
| | | | | | | | | seems dd(1) sucks on travis more than expected: dd: invalid status flag: `none' Try `dd --help' for more information. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: redirect unwanted dd(1) advices to /dev/nullKarel Zak2017-03-241-3/+3
| | | | | | | | | | It seems that dd(1) on travis writes unwanted messages to stdout dd: you probably want conv=notrunc with oflag=append and we do not want conv= Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: fix compiler warning [-Wdiscarded-qualifiers]Karel Zak2017-03-241-5/+5
| | | | | | Let's also hide the show[] array in has_item(). Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2017wk11' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2017-03-2412-145/+144Star
|\ | | | | | | | | | | | | | | | | * '2017wk11' of git://github.com/kerolasa/lelux-utiliteetit: blkid: add control struct blkid: simplify version option handling tests: add static keyword where needed [smatch scan] tests: do not use plain 0 as NULL [smatch scan] libsmartcols: fix test variable shadowing
| * blkid: add control structSami Kerola2017-03-171-83/+88
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * blkid: simplify version option handlingSami Kerola2017-03-171-8/+2Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * tests: add static keyword where needed [smatch scan]Sami Kerola2017-03-175-10/+10
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * tests: do not use plain 0 as NULL [smatch scan]Sami Kerola2017-03-177-39/+39
| | | | | | | | | | | | Likewise commit 87918040658f2fa9b1bf78f1f8f4f5c065a2e3a3. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * libsmartcols: fix test variable shadowingSami Kerola2017-03-171-5/+5
| | | | | | | | | | | | | | | | | | | | libsmartcols/samples/fromfile.c:57:16: warning: declaration of 'flags' shadows a global declaration [-Wshadow] libsmartcols/samples/fromfile.c:29:33: note: shadowed declaration is here libsmartcols/samples/fromfile.c:101:8: warning: declaration of 'flags' shadows a global declaration [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | bash-completion: update fincore to have latest optionsSami Kerola2017-03-241-2/+23
| | | | | | | | | | | | Also include --output smartcols fields. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | Merge branch 'hwclock-date7-1' of github.com:jwpi/util-linuxKarel Zak2017-03-242-5/+5
|\ \ | | | | | | | | | | | | * 'hwclock-date7-1' of github.com:jwpi/util-linux: hwclock-rtc.c: try the 'new' rtc class first
| * | hwclock-rtc.c: try the 'new' rtc class firstJ William Piggott2017-03-232-5/+5
| | | | | | | | | | | | | | | | | | | | | * sys-utils/hwclock-rtc.c: try to open the 'new' rtc class driver first. * sys-utils/hwclock.8.in: document this. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | | libblkid: fix typoKarel Zak2017-03-241-1/+2
|/ / | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | build-sys: add missing header fileKarel Zak2017-03-231-0/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libblkid: prevent OOB access while probing HFS+Tobias Stoeckmann2017-03-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | It is possible to perform out of boundary read accesses due to insufficient boundary checks in probe_hfsplus. The first issue occurs if the leaf count in a B-node is too small. The second happens while parsing a unicode description which is longer than 255 UTF-8 characters. The length is stored in a 16 bit integer, but the array in the struct is limited to 255 * 2, which is in sync with Apple's Open Source HFS+ implementation (HFSUniStr255). Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
* | tests: refresh fincore testKarel Zak2017-03-232-42/+41Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | fincore: fix error on open()Karel Zak2017-03-231-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>