]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Tue, 4 Oct 2016 14:18:16 +0000 (16:18 +0200)]
lib/randutils: remove unnecessary function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Oct 2016 14:14:48 +0000 (16:14 +0200)]
lib/mbsalign: free buffer after error [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Oct 2016 14:08:55 +0000 (16:08 +0200)]
sfdisk: cleanup before going out of scope [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Oct 2016 14:03:11 +0000 (16:03 +0200)]
sfdisk: free before going out of scope [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Oct 2016 13:56:59 +0000 (15:56 +0200)]
isosize: don't ignore read() result [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Oct 2016 13:53:55 +0000 (15:53 +0200)]
fsck.cramfs: don't ignore read() result [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Oct 2016 13:53:19 +0000 (15:53 +0200)]
tests: (cramfs) check for test_sysinfo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Oct 2016 13:02:00 +0000 (15:02 +0200)]
cfdisk: fix mountpoint detection
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2016 14:56:56 +0000 (16:56 +0200)]
Revert "su,runuser: add libseccomp based workaround for TIOCSTI ioctl"
This reverts commit
8e4925016875c6a4f2ab4f833ba66f0fc57396a2 .
Stupid hack...
Karel Zak [Mon, 3 Oct 2016 09:59:25 +0000 (11:59 +0200)]
tests: add chrt vs. nice test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2016 09:02:35 +0000 (11:02 +0200)]
chrt: follow nice setting, prefer sched_setscheduler()
* do not reset 'nice' setting by sched_setattr(), if 'nice' setting
is not zero then chrt ends with EPERM for non-root users:
$ renice -n 5 -p $$; chrt -v -b 0 date
12475 (process ID) old priority 0, new priority 5
chrt: failed to set pid 0's policy: Operation not permitted
* it seems more elegant to always use old sched_setscheduler() API for
non-deadline policies; in this case we do not need getpriority()
to keep 'nice' unchanged.
Addresses: https://github.com/karelzak/util-linux/issues/359
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Sep 2016 23:20:06 +0000 (01:20 +0200)]
tools: make ko-release-gen usable with gpg2
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Sep 2016 09:24:42 +0000 (11:24 +0200)]
build-sys: release++ (v2.29-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Sep 2016 09:22:39 +0000 (11:22 +0200)]
docs: update v2.29-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Sep 2016 09:13:00 +0000 (11:13 +0200)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Sep 2016 09:05:42 +0000 (11:05 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Sep 2016 09:01:41 +0000 (11:01 +0200)]
libsmartcols: add scols_column_add_width()
Signed-off-by: Karel Zak <kzak@redhat.com>
Sebastian Rasmussen [Fri, 30 Sep 2016 08:34:15 +0000 (10:34 +0200)]
po: update sv.po (from translationproject.org)
Jakub Bogusz [Fri, 30 Sep 2016 08:34:15 +0000 (10:34 +0200)]
po: update pl.po (from translationproject.org)
Benno Schulenberg [Fri, 30 Sep 2016 08:34:15 +0000 (10:34 +0200)]
po: update nl.po (from translationproject.org)
Takeshi Hamasaki [Fri, 30 Sep 2016 08:34:15 +0000 (10:34 +0200)]
po: update ja.po (from translationproject.org)
Antonio Ceballos Roa [Fri, 30 Sep 2016 08:34:15 +0000 (10:34 +0200)]
po: update es.po (from translationproject.org)
Philipp Thomas [Fri, 30 Sep 2016 08:34:15 +0000 (10:34 +0200)]
po: update de.po (from translationproject.org)
Petr Písař [Fri, 30 Sep 2016 08:34:15 +0000 (10:34 +0200)]
po: update cs.po (from translationproject.org)
Karel Zak [Fri, 30 Sep 2016 08:30:07 +0000 (10:30 +0200)]
findmnt: remove duplicate include
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Sep 2016 08:29:00 +0000 (10:29 +0200)]
tests: update build-sys tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 29 Sep 2016 14:32:33 +0000 (16:32 +0200)]
su,runuser: add libseccomp based workaround for TIOCSTI ioctl
This patch add libseccomp based syscalls filter to disable TIOCSTI
ioctl in su/runuser children.
IMHO it is not elegant solution due to dependence on libseccomp
(--without-seccomp if hate it)... but there is nothing better for now.
Addresses: CVE-2016-2779
Signed-off-by: Karel Zak <kzak@redhat.com>
Stanislav Brabec [Wed, 2 Mar 2016 19:35:54 +0000 (20:35 +0100)]
tests: Add helper for TIOCSTI exploit
This helper/exploit injects "id -u -n\n" to the vulnerable calling terminal.
Use id -u -n to get a reproducible output of test cases based on it.
What can happen:
Nothing, no exploit: pty is not accessible, sedsid() disconnected the task from
pty, TIOCSTI failed.
The command is injected to the unprivileged environment pty, and you see e. g.
"nobody": This is acceptable.
The command is injected to the caller (privileged) pty, and you see "root" (or
caller uid name): This is not acceptable and has security implications.
References:
CVE-2016-2779
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2779
http://seclists.org/oss-sec/2016/q1/448
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815922
https://bugzilla.redhat.com/show_bug.cgi?id=173008
https://bugzilla.suse.com/show_bug.cgi?id=968674
https://bugzilla.suse.com/show_bug.cgi?id=968675
CVE-2016-2781
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2781
http://seclists.org/oss-sec/2016/q1/452
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Cc: Federico Bento <up201407890@alunos.dcc.fc.up.pt>
Karel Zak [Thu, 29 Sep 2016 09:55:07 +0000 (11:55 +0200)]
libmount: paranoid change in mnt_table_is_fs_mounted()
Signed-off-by: Karel Zak <kzak@redhat.com>
Aurelien Aptel [Thu, 1 Sep 2016 11:57:42 +0000 (13:57 +0200)]
libmount: fix mount -a for cifs
when mounting a cifs share, the src is actually an UNC path which can in
in several forms:
simple: //host/share, //host/share/
including subpath: //host/share/sub/path
to check if the cifs fs is mounted we have to extract the subpath and
compare *that* to the root.
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Tobias Stoeckmann [Thu, 8 Sep 2016 19:19:22 +0000 (21:19 +0200)]
ul: Fix buffer overflow
The text-utility ul can run into a buffer overflow on very long lines.
See this proof of concept how to reproduce the issue:
$ dd if=/dev/zero bs=1M count=10 | tr '\000' '\041' > poc.txt
$ echo -ne '\xe\x5f\x8\x5f\x61\x2\xf\x5f\x8\x5f' | dd of=poc.txt conv=notrunc
$ ul -i poc.txt > /dev/null # output would take ages
Segmentation fault
$ _
The problem manifests by using alloca with "maxcol", which can be as
large as INT_MAX, based on the input line.
A very long line (> 8 MB) with modes must be supplied to ul, as seen in
my proof of concept byte sequence above.
It is rather easy to fix this issue: allocate space on the heap instead.
maxcol could overflow here, but in that case no system will have enough
space to handle the request, properly ending ul through an err() call.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Sami Kerola [Sun, 4 Sep 2016 10:15:34 +0000 (11:15 +0100)]
lib/strutils: make left and right trims more robust
Do not follow null pointer, and stop going any further when
ltrim_whitespace() is at the end of a string.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Tue, 27 Sep 2016 12:16:18 +0000 (14:16 +0200)]
libsmartcols: custom wrap fixes
Reported-by: Igor Gnatenko <i.gnatenko.brain@gmail.com
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 27 Sep 2016 10:52:47 +0000 (12:52 +0200)]
docs: some random fixes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 27 Sep 2016 09:58:32 +0000 (11:58 +0200)]
libfdisk: (docs) add missing version notes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 27 Sep 2016 09:35:43 +0000 (11:35 +0200)]
libsmartcols: (docs) add missing version notes
Signed-off-by: Karel Zak <kzak@redhat.com>
Igor Gnatenko [Fri, 23 Sep 2016 14:05:02 +0000 (16:05 +0200)]
libsmartcols: fixes in doc generation
* Add 2.29 symbols index
* Sync argument names between header and implementation
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Karel Zak [Mon, 26 Sep 2016 09:20:07 +0000 (11:20 +0200)]
libsmartcols: support custom wrap and remove SCOLS_FL_WRAPNL
This new API provides full control on multi-line cells, you can wrap
text by new lines (build-in support) or by another way (after words,
commas, etc.) Changes:
* new scols_column_set_wrapfunc() sets pointers to two callback functions
1/ chunksize() - returns largest data chunk size; used when we
calculate columns width
2/ nextchunk() - terminate the current chunk and returns pointer to
the next; used when we print data
* remove SCOLS_FL_WRAPNL and add new functions scols_wrapnl_chunksize()
and scols_wrapnl_nextchunk() to provide build-in functionality to
wrap cells on \n
* remove scols_column_is_wrapnl() add scols_column_is_customwrap()
(returns true if custom wrap functions are defined)
* add scols_column_set_safechars() and scols_column_get_safechars() to
allow to control output encoding, safe chars are not encoded by \xFOO
* modify "fromfile" test code to use build-in scols_wrapnl_* callbacks
for "wrapnl" tests
* add new function scols_column_get_table()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 23 Sep 2016 12:31:06 +0000 (14:31 +0200)]
libsmartcols: (docs) add missing functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 23 Sep 2016 12:25:37 +0000 (14:25 +0200)]
Merge branch 'getters' of https://github.com/ignatenkobrain/util-linux
* 'getters' of https://github.com/ignatenkobrain/util-linux:
libsmartcols: add scols_table_is_nolinesep()
libsmartcols: add scols_table_is_nowrap()
libsmartcols: add scols_table_get_name()
Igor Gnatenko [Fri, 23 Sep 2016 12:21:15 +0000 (14:21 +0200)]
libsmartcols: add scols_table_is_nolinesep()
And save 1 or 0 into tb->no_linesep instead of any value.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Igor Gnatenko [Fri, 23 Sep 2016 12:20:41 +0000 (14:20 +0200)]
libsmartcols: add scols_table_is_nowrap()
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Karel Zak [Fri, 23 Sep 2016 12:20:24 +0000 (14:20 +0200)]
libsmartcols: cleanup scols_table_set_symbols() API
Change behavior:
* scols_table_set_symbols(tb, NULL) remove reference to the current symbols setting
and does not set default symbols at all
Add new functions:
* scols_table_get_symbols()
* scols_table_set_default_symbols()
Signed-off-by: Karel Zak <kzak@redhat.com>
Igor Gnatenko [Fri, 23 Sep 2016 12:09:43 +0000 (14:09 +0200)]
libsmartcols: add scols_table_get_name()
Currently we have scols_table_set_name() but don't have getter for it.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Karel Zak [Fri, 23 Sep 2016 11:20:49 +0000 (13:20 +0200)]
findmnt: (verify) add docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 22 Sep 2016 11:46:05 +0000 (13:46 +0200)]
findmnt: (verify) minor changes in strings
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 22 Sep 2016 11:40:24 +0000 (13:40 +0200)]
findmnt: (verify) check filesystem type
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Sep 2016 13:08:24 +0000 (15:08 +0200)]
findmnt: (verify) add swaparea verification
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Sep 2016 12:32:47 +0000 (14:32 +0200)]
findmnt: (verify) add options verification
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Sep 2016 12:15:49 +0000 (14:15 +0200)]
findmnt: (verify) add source verification
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 20 Sep 2016 13:45:15 +0000 (15:45 +0200)]
findmnt: add --verify and --verbose
Signed-off-by: Karel Zak <kzak@redhat.com>
Igor Gnatenko [Fri, 23 Sep 2016 09:24:28 +0000 (11:24 +0200)]
libsmartcols: use const qualifier for scols_table_get_termwidth
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Karel Zak [Fri, 23 Sep 2016 09:14:15 +0000 (11:14 +0200)]
Merge branch 'api_const' of https://github.com/ignatenkobrain/util-linux
* 'api_const' of https://github.com/ignatenkobrain/util-linux:
libsmartcols: use const qualifier where it's possible
debug: use const void * for ul_debugobj()
libsmartcols: make get_line/column_separator() return const
Karel Zak [Fri, 23 Sep 2016 09:07:15 +0000 (11:07 +0200)]
Merge branch 'master' of https://github.com/ignatenkobrain/util-linux
Karel Zak [Thu, 22 Sep 2016 11:47:23 +0000 (13:47 +0200)]
libsmartcols: keep scols_table_get_termwidth() read-only
Addresses: https://github.com/karelzak/util-linux/issues/356
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Sep 2016 12:47:32 +0000 (14:47 +0200)]
swapon: fix discard option parsing
The current code does not work as expected if there is an option
behind the discard=<arg>, for example:
swapon /dev/sdc -o discard=once,pri=10
ignores "once" the result is SWAP_FLAG_DISCARD; strace:
Old version:
swapon("/dev/sdc", SWAP_FLAG_PREFER|SWAP_FLAG_DISCARD|10) = 0
Fixed version:
swapon("/dev/sdc", SWAP_FLAG_PREFER|SWAP_FLAG_DISCARD|SWAP_FLAG_DISCARD_ONCE|10) = 0
Signed-off-by: Karel Zak <kzak@redhat.com>
Igor Gnatenko [Wed, 21 Sep 2016 06:30:48 +0000 (08:30 +0200)]
libsmartcols: use const qualifier where it's possible
Closes: https://github.com/karelzak/util-linux/issues/355
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Igor Gnatenko [Wed, 21 Sep 2016 06:22:35 +0000 (08:22 +0200)]
debug: use const void * for ul_debugobj()
We don't modify data it's pointing out and we should not modify it.
Also remove casting to void * as gcc will do it automatically (before
we had to cast it explicitly to avoid warning on discarding 'const'
qualifier).
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Igor Gnatenko [Wed, 21 Sep 2016 05:25:23 +0000 (07:25 +0200)]
libsmartcols: make get_line/column_separator() return const
The patch introduces tiny API changes (char * -> const char *) for
scols_table_get_line_separator
scols_table_get_column_separator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Igor Gnatenko [Tue, 20 Sep 2016 13:36:55 +0000 (15:36 +0200)]
trivial: use tabs consistently
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Karel Zak [Mon, 19 Sep 2016 12:21:18 +0000 (14:21 +0200)]
Merge branch 'hotfix' of https://github.com/ignatenkobrain/util-linux
Karel Zak [Mon, 19 Sep 2016 12:20:37 +0000 (14:20 +0200)]
Merge branch 'typos' of https://github.com/ignatenkobrain/util-linux
* 'typos' of https://github.com/ignatenkobrain/util-linux:
libsmartcols: fix typos in docs
Igor Gnatenko [Sat, 17 Sep 2016 16:55:52 +0000 (18:55 +0200)]
libsmartcols: be consistent, use 'sy' for symbols
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Igor Gnatenko [Sun, 18 Sep 2016 09:47:13 +0000 (11:47 +0200)]
libsmartcols: fix typos in docs
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Karel Zak [Mon, 19 Sep 2016 12:07:38 +0000 (14:07 +0200)]
libsmartcols: be more strict about empty tables
and don't print extra \n for empty table.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 19 Sep 2016 11:48:42 +0000 (13:48 +0200)]
libsmartcols: fix comment
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 19 Sep 2016 11:39:03 +0000 (13:39 +0200)]
libsmartcols: cleanup get functions
The patch introduces tiny API changes (int -> size_t) for
scols_table_get_ncols
scols_table_get_nlines
Addresses: https://github.com/karelzak/util-linux/issues/349
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 16 Sep 2016 12:18:01 +0000 (14:18 +0200)]
tests: add columns separator to libsmartcols test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 16 Sep 2016 11:49:37 +0000 (13:49 +0200)]
tests: add export and raw to libsmartcols test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 16 Sep 2016 11:37:08 +0000 (13:37 +0200)]
tests: add libsmartcols JSON test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 16 Sep 2016 11:30:29 +0000 (13:30 +0200)]
libsmartcols: add JSON support to sample application
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 16 Sep 2016 11:22:47 +0000 (13:22 +0200)]
libsmartcols: improve JSON
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 16 Sep 2016 11:00:47 +0000 (13:00 +0200)]
libsmartcols: cleanup line separator usage
* use line separator only to separate lines, not after last line
* explicitly print \n after table in scols_print_table()
* don't terminate table by \n or line separator in scols_print_table_to_string()
Note that the patch is little bit trick due to impact to the trees
printing. Now print_tree_line() should be more readable.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 15 Sep 2016 10:32:58 +0000 (12:32 +0200)]
tests: add libsmartcols wrap and wrapnl tree tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 15 Sep 2016 10:25:08 +0000 (12:25 +0200)]
tests: add tree libsmartcols test files
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 15 Sep 2016 10:22:12 +0000 (12:22 +0200)]
libsmartcols: fix tree padding
We cannot use cell-padding char with in tree ASCII art, because
tree uses two chars rather than one.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 15 Sep 2016 10:12:18 +0000 (12:12 +0200)]
libsmartcols: add support for trees to the sample application
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 15 Sep 2016 08:05:15 +0000 (10:05 +0200)]
Merge branch 'patch-1' of https://github.com/ignatenkobrain/util-linux
Igor Gnatenko [Wed, 14 Sep 2016 17:36:51 +0000 (19:36 +0200)]
trivial: s/automatical/automatic/g
"Automatical" is archaic form of "automatic".
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Igor Gnatenko [Tue, 13 Sep 2016 13:06:49 +0000 (15:06 +0200)]
smartcols/symbols: free cell_padding in unref()
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
Karel Zak [Wed, 14 Sep 2016 15:02:54 +0000 (17:02 +0200)]
tests: add missing expected/ dir stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 14 Sep 2016 10:49:46 +0000 (12:49 +0200)]
tests: add libsmartcols title test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 14 Sep 2016 10:38:34 +0000 (12:38 +0200)]
tests: add another libsmartcols tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 14 Sep 2016 10:37:53 +0000 (12:37 +0200)]
libsmartcols: fix hidden file usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2016 14:50:10 +0000 (16:50 +0200)]
build-sys: remove dead libsmartcols sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2016 12:12:11 +0000 (14:12 +0200)]
tests: improve libsmartcols test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2016 12:06:01 +0000 (14:06 +0200)]
libsmartcols: add functions to control terminal usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2016 11:08:02 +0000 (13:08 +0200)]
libsmartcols: add application to test library features
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 12 Sep 2016 14:12:22 +0000 (16:12 +0200)]
libsmartcols: fix WRAPNL on strings without \n
Addresses: https://github.com/karelzak/util-linux/issues/343
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 12 Sep 2016 09:58:34 +0000 (11:58 +0200)]
libsmartcols: fix WRAPNL crashes
Addresses: https://github.com/karelzak/util-linux/issues/344
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 8 Sep 2016 09:57:34 +0000 (11:57 +0200)]
mount: add note about another flags for "remount,bind"
The man page is talking about read-only bind mounts (-o
remount,bind,ro), but this feature also works for another VFS flags
like nodev, suid, etc. For example:
mount -o remount,bind,noatime /mountpoint
is a valid command.
Addresses: https://github.com/karelzak/util-linux/issues/342
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 7 Sep 2016 10:25:06 +0000 (12:25 +0200)]
libsmartcols: support LIBSMARTCOLS_DEBUG_PADDING=on
This env.variable forces libsmartcols to use visible padding chars.
The standard debug has to be enabled (to minimize overhead for
non-debug execution).
For example:
$ LIBSMARTCOLS_DEBUG=all LIBSMARTCOLS_DEBUG_PADDING=on findmnt 2> ~/log
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 7 Sep 2016 09:45:35 +0000 (11:45 +0200)]
libsmartcols: add fallback for symbols
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 7 Sep 2016 09:07:04 +0000 (11:07 +0200)]
libsmartcols: allow to change cell padding char
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 6 Sep 2016 12:49:48 +0000 (14:49 +0200)]
fsck: remove fs-specific options from man page
Let's force users to read fs-specific man pages rather than try to be
smart and maintain some non-fsck options in fsck.8.
Reported-by: Matej Cepl <mcepl@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 6 Sep 2016 11:01:45 +0000 (13:01 +0200)]
libsmartcols: extend wrapnl sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 6 Sep 2016 11:01:09 +0000 (13:01 +0200)]
libsmartcols: fix padding for non-maxout output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 6 Sep 2016 10:24:49 +0000 (12:24 +0200)]
libsmartcols: remove debuging code from sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 6 Sep 2016 09:18:18 +0000 (11:18 +0200)]
libsmartcols: commit missing file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 6 Sep 2016 08:51:25 +0000 (10:51 +0200)]
libsmartcols: support multi-line cells based on line breaks
Now libsmartcols completely control when and how wrap long
lines/cells. This is sometimes user unfriendly and it would be nice to
support multi-line cells where wrap is based on \n (new line char).
This patch add new column flag SCOLS_FL_WRAPNL.
Signed-off-by: Karel Zak <kzak@redhat.com>