Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #70999 > unrolled thread
| Started by | dann frazier <dannf@dannf.org> |
|---|---|
| First post | 2021-04-30 22:50 +0200 |
| Last post | 2022-05-19 04:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.kernel
Bug#987851: linux-version sort: argv and stdin behaviors differ dann frazier <dannf@dannf.org> - 2021-04-30 22:50 +0200
Bug#987851: marked as done (linux-version sort: argv and stdin behaviors differ) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-05-19 04:40 +0200
| From | dann frazier <dannf@dannf.org> |
|---|---|
| Date | 2021-04-30 22:50 +0200 |
| Subject | Bug#987851: linux-version sort: argv and stdin behaviors differ |
| Message-ID | <C9Iff-3zl-7@gated-at.bofh.it> |
Package: linux-base
Version: 4.6
Severity: normal
Tags: patch
Using argv:
$ linux-version sort 5.8.0-50-generic 5.8.0-50-generic-64k
5.8.0-50-generic
5.8.0-50-generic-64k
Using stdin:
$ cat versions.txt
5.8.0-50-generic
5.8.0-50-generic-64k
$ cat versions.txt | linux-version sort
5.8.0-50-generic-64k
5.8.0-50-generic
It seems the trailing "\n" is unexpectedly being used in the comparison.
Now, perl and I have never really gotten along, but this patch seems to work:
--- /usr/bin/linux-version.orig 2020-06-25 17:23:24.000000000 +0000
+++ /usr/bin/linux-version 2021-04-30 20:39:13.708560573 +0000
@@ -70,7 +70,7 @@
@versions = map({[$_, "\n"]} @_);
} else {
while (<STDIN>) {
- /^([^ ]*)(.*\n?)$/ or die;
+ /^([^ \n]*)(.*\n?)$/ or die;
push @versions, [$1, $2];
}
}
-- System Information:
Debian Release: 11.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-5-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages linux-base depends on:
ii debconf [debconf-2.0] 1.5.76
linux-base recommends no packages.
linux-base suggests no packages.
-- debconf information:
* linux-base/removing-running-kernel: true
linux-base/removing-title:
[toc] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2022-05-19 04:40 +0200 |
| Subject | Bug#987851: marked as done (linux-version sort: argv and stdin behaviors differ) |
| Message-ID | <EoEeZ-gqO9-17@gated-at.bofh.it> |
| In reply to | #70999 |
[Multipart message — attachments visible in raw view] — view raw
Your message dated Thu, 19 May 2022 02:33:55 +0000 with message-id <E1nrVz9-0002kv-3X@fasolo.debian.org> and subject line Bug#987851: fixed in linux-base 4.9 has caused the Debian Bug report #987851, regarding linux-version sort: argv and stdin behaviors differ to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 987851: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987851 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web