Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
python3.35632
bpo38361-syslog-no-slash-ident.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bpo38361-syslog-no-slash-ident.patch of Package python3.35632
From 7175dcb3cdf46d9614eb3f3858d7236d18fd365b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= <mcepl@cepl.eu> Date: Thu, 4 Apr 2024 01:15:32 +0200 Subject: [PATCH] fixes syslog making default "ident" from sys.argv[0] Code is from gh#python/cpython!16557, it was released upstream in 3.9.0. Fixes: bpo#38361 Fixes: bsc#1222109 Patch: bpo38361-syslog-no-slash-ident.patch --- Modules/syslogmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c index 7afca58d0ec..0aa6234fd03 100644 --- a/Modules/syslogmodule.c +++ b/Modules/syslogmodule.c @@ -99,7 +99,7 @@ syslog_get_argv(void) if (slash == -2) return NULL; if (slash != -1) { - return PyUnicode_Substring(scriptobj, slash, scriptlen); + return PyUnicode_Substring(scriptobj, slash + 1, scriptlen); } else { Py_INCREF(scriptobj); return(scriptobj); -- 2.45.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor