ALT Linux Bugzilla
– Attachment 11898 Details for
Bug 44337
Не определено значение MAXCPU для платформы x86_64
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
исправление сборки с gcc10 при бэкпорте в p10
0001-fakesudo.c-fix-build-with-gcc10.patch (text/plain), 1.01 KB, created by
Николай Костригин
on 2022-11-18 15:39:37 MSK
(
hide
)
Description:
исправление сборки с gcc10 при бэкпорте в p10
Filename:
MIME Type:
Creator:
Николай Костригин
Created:
2022-11-18 15:39:37 MSK
Size:
1.01 KB
patch
obsolete
>From 7ca001077379de73e89d32a9a9c6d773cd3aa8c3 Mon Sep 17 00:00:00 2001 >From: Nikolai Kostrigin <nickel@altlinux.org> >Date: Fri, 18 Nov 2022 14:23:42 +0300 >Subject: [PATCH] fakesudo.c: fix build with gcc10 > >C99 doesn't allow to put declararion right after a label, so put >an empty statement between them. > >fakesudo.c:119:5: error: a label can only be part of a statement and >a declaration is not a statement > 119 | char hn[HOST_NAME_MAX] = {}; > | ^~~~ > >Signed-off-by: Nikolai Kostrigin <nickel@altlinux.org> >--- > fakesudo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/fakesudo.c b/fakesudo.c >index 6b1e115..1befacc 100644 >--- a/fakesudo.c >+++ b/fakesudo.c >@@ -115,7 +115,7 @@ int main(int argc, char **argv) > case 'T': > printf("fakesudo: you are not permitted to use the -%c option\n", ch); > exit(1); >- case 'l': >+ case 'l': ; > char hn[HOST_NAME_MAX] = {}; > gethostname(hn, sizeof hn); > printf("User %s may run the following commands on %s:\n", me->pw_name, hn); >-- >2.33.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44337
:
11880
| 11898