Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f4a9259f39 | |||
| 42ae455d26 |
49
pam_ssh-gcc15.patch
Normal file
49
pam_ssh-gcc15.patch
Normal file
@@ -0,0 +1,49 @@
|
||||
Index: pam_ssh-2.3/pam_option.h
|
||||
===================================================================
|
||||
--- pam_ssh-2.3.orig/pam_option.h
|
||||
+++ pam_ssh-2.3/pam_option.h
|
||||
@@ -47,7 +47,7 @@ enum opt {
|
||||
struct options {
|
||||
struct {
|
||||
const char *name;
|
||||
- int bool;
|
||||
+ int boolean;
|
||||
char *arg;
|
||||
} opt[PAM_MAX_OPTIONS];
|
||||
};
|
||||
Index: pam_ssh-2.3/pam_std_option.c
|
||||
===================================================================
|
||||
--- pam_ssh-2.3.orig/pam_std_option.c
|
||||
+++ pam_ssh-2.3/pam_std_option.c
|
||||
@@ -81,7 +81,7 @@ pam_std_option(struct options *options,
|
||||
else
|
||||
options->opt[i].name = NULL;
|
||||
|
||||
- options->opt[i].bool = 0;
|
||||
+ options->opt[i].boolean = 0;
|
||||
options->opt[i].arg = NULL;
|
||||
}
|
||||
|
||||
@@ -95,13 +95,13 @@ pam_std_option(struct options *options,
|
||||
break;
|
||||
arglen = strlen(options->opt[i].name);
|
||||
if (strcmp(argv[j], options->opt[i].name) == 0) {
|
||||
- options->opt[i].bool = 1;
|
||||
+ options->opt[i].boolean = 1;
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
else if (strncmp(argv[j], options->opt[i].name, arglen)
|
||||
== 0 && argv[j][arglen] == '=') {
|
||||
- options->opt[i].bool = 1;
|
||||
+ options->opt[i].boolean = 1;
|
||||
options->opt[i].arg
|
||||
= strdup(&argv[j][arglen + 1]);
|
||||
found = 1;
|
||||
@@ -119,5 +119,5 @@ pam_test_option(struct options *options,
|
||||
{
|
||||
if (arg != NULL)
|
||||
*arg = options->opt[option].arg;
|
||||
- return options->opt[option].bool;
|
||||
+ return options->opt[option].boolean;
|
||||
}
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 12 12:00:31 UTC 2025 - pgajdos@suse.com
|
||||
|
||||
- added patches
|
||||
fix build with gcc15
|
||||
+ pam_ssh-gcc15.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 18 08:13:45 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package pam_ssh
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -28,6 +28,8 @@ Source1: http://sourceforge.net/projects/pam-ssh/files/pam_ssh/%{version}
|
||||
Source2: baselibs.conf
|
||||
Source3: %{name}.keyring
|
||||
Source4: pam_ssh.tmpfiles
|
||||
# build with gcc15
|
||||
Patch0: pam_ssh-gcc15.patch
|
||||
BuildRequires: libtool
|
||||
BuildRequires: openssh
|
||||
BuildRequires: openssl-devel
|
||||
@@ -42,7 +44,7 @@ SSH private key. An ssh-agent is started and keys are added. For the
|
||||
entire session, the user types no more passwords.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
|
||||
Reference in New Issue
Block a user