]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Merge branch 'optarg' of https://github.com/stoeckmann/util-linux
authorKarel Zak <kzak@redhat.com>
Wed, 15 Apr 2026 10:45:07 +0000 (12:45 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 15 Apr 2026 10:45:07 +0000 (12:45 +0200)
* 'optarg' of https://github.com/stoeckmann/util-linux:
  lsirq: Skip optarg duplication
  chmem: Skip optarg duplication
  getopt: Skip optarg duplication
  copyfilerange: Skip optarg duplication
  blkid: Fix memory leaks
  login: Skip optarg duplication
  lib/cpuset: Skip optarg duplication
  last: Skip optarg duplication

1  2 
login-utils/last.c

index 51743e5b49e2ad9b81cd3438ea114aa3b9ff5d70,e953a021427dd8c716caf7d5f2b972110f15292d..8b5d64360af06c19f343c2d59e376f74005c65f5
@@@ -997,10 -989,12 +997,10 @@@ int main(int argc, char **argv
  {
        struct last_control ctl = {
                .showhost = TRUE,
 -              .name_len = LAST_LOGIN_LEN,
                .time_fmt = LAST_TIMEFTM_SHORT,
 -              .domain_len = LAST_DOMAIN_LEN,
                .fullnames_mode = false,
        };
-       char **files = NULL;
+       const char **files = NULL;
        struct number_buffer nb = {
                .pos = 0
        };