Skip to content

Commit 7175dcb

Browse files
committed
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
1 parent 5afa628 commit 7175dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/syslogmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ syslog_get_argv(void)
9999
if (slash == -2)
100100
return NULL;
101101
if (slash != -1) {
102-
return PyUnicode_Substring(scriptobj, slash, scriptlen);
102+
return PyUnicode_Substring(scriptobj, slash + 1, scriptlen);
103103
} else {
104104
Py_INCREF(scriptobj);
105105
return(scriptobj);

0 commit comments

Comments
 (0)