Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51576 Details for
Bug 82372
openssh: sftp-server segfaults when "sftplogging" USE flag is enabled
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openssh-3.9_p1-sftplogging-2.interdiff
openssh-3.9_p1-sftplogging-2.interdiff (text/plain), 1.08 KB, created by
solar (RETIRED)
on 2005-02-19 02:41:47 UTC
(
hide
)
Description:
openssh-3.9_p1-sftplogging-2.interdiff
Filename:
MIME Type:
Creator:
solar (RETIRED)
Created:
2005-02-19 02:41:47 UTC
Size:
1.08 KB
patch
obsolete
>diff -u openssh-3.9p1_sftp/sftp-server.c openssh-3.9p1_sftp/sftp-server.c >--- openssh-3.9p1_sftp/sftp-server.c 2004-08-19 10:18:56.798255984 +0000 >+++ openssh-3.9p1_sftp/sftp-server.c 2004-08-19 10:18:56.798255984 +0000 >@@ -1138,12 +1138,12 @@ > handle_init(); > > /* Transaction logging */ >- >+ if ((char *)getenv("LOG_SFTP") != NULL) > if (atoi(getenv("LOG_SFTP")) == 1) > { > permit_logging = 1; >- log_init("sftp-server", atoi(getenv("SFTP_LOG_LEVEL")), >- atoi(getenv("SFTP_LOG_FACILITY")), 0); >+ log_init("sftp-server", ((char *)getenv("SFTP_LOG_LEVEL") == NULL) ? 0 : atoi(getenv("SFTP_LOG_LEVEL")), >+ ((char *)getenv("SFTP_LOG_FACILITY") == NULL) ? 0 : atoi(getenv("SFTP_LOG_FACILITY")), 0); > }; > > >@@ -1178,7 +1178,7 @@ > if ( permit_logging == 1 ) > logit("client is not permitted to chmod."); > }; >- if (atoi(getenv("SFTP_PERMIT_CHOWN")) != 1) { >+ if ((char *)(getenv("SFTP_PERMIT_CHOWN")) != NULL) if (atoi(getenv("SFTP_PERMIT_CHOWN")) != 1) { > permit_chown = 0; > if ( permit_logging == 1 ) > logit("client is not permitted to chown.");
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 82372
:
51576
|
53482
|
53483