projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb96a2c
)
journal: fix --until
author
Paul W. Frields
<stickster@gmail.com>
Sun, 24 Feb 2013 14:27:51 +0000
(15:27 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 24 Feb 2013 14:28:37 +0000
(15:28 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=58946
src/journal/journalctl.c
patch
|
blob
|
history
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index
0afeef9
..
0b3a79b
100644
(file)
--- a/
src/journal/journalctl.c
+++ b/
src/journal/journalctl.c
@@
-433,7
+433,7
@@
static int parse_argv(int argc, char *argv[]) {
if (arg_follow && !arg_no_tail && arg_lines < 0)
arg_lines = 10;
- if (arg_since_set && arg_until_set && arg_since
_set > arg_until_set
) {
+ if (arg_since_set && arg_until_set && arg_since
> arg_until
) {
log_error("--since= must be before --until=.");
return -EINVAL;
}
@@
-1076,6
+1076,8
@@
int main(int argc, char *argv[]) {
log_error("Failed to determine timestamp: %s", strerror(-r));
goto finish;
}
+ if (usec > arg_until)
+ goto finish;
}
if (!arg_merge) {