Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 251851 Details for
Bug 342527
x11-misc/slim: inadvertently resolves symlink when user's home is symbolic link
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix bug 342527, inadvertently following of symlinks in user's home
342527-fix-symlink-homes.patch (text/plain), 1.14 KB, created by
Fabiano
on 2010-10-24 20:48:10 UTC
(
hide
)
Description:
Fix bug 342527, inadvertently following of symlinks in user's home
Filename:
MIME Type:
Creator:
Fabiano
Created:
2010-10-24 20:48:10 UTC
Size:
1.14 KB
patch
obsolete
>diff -Naur slim-1.3.2.old/app.cpp slim-1.3.2.new_/app.cpp >--- slim-1.3.2.old/app.cpp 2010-10-24 06:01:15.070000019 +0000 >+++ slim-1.3.2.new/app.cpp 2010-10-24 05:19:37.253999928 +0000 >@@ -542,6 +542,7 @@ > try{ > if(term) pam.setenv("TERM", term); > pam.setenv("HOME", pw->pw_dir); >+ pam.setenv("PWD", pw->pw_dir); > pam.setenv("SHELL", pw->pw_shell); > pam.setenv("USER", pw->pw_name); > pam.setenv("LOGNAME", pw->pw_name); >@@ -565,11 +566,12 @@ > char** child_env = pam.getenvlist(); > pam.end(); > #else >- const int Num_Of_Variables = 10; // Number of env. variables + 1 >+ const int Num_Of_Variables = 11; // Number of env. variables + 1 > char** child_env = static_cast<char**>(malloc(sizeof(char*)*Num_Of_Variables)); > int n = 0; > if(term) child_env[n++]=StrConcat("TERM=", term); > child_env[n++]=StrConcat("HOME=", pw->pw_dir); >+ child_env[n++]=StrConcat("PWD=", pw->pw_dir); > child_env[n++]=StrConcat("SHELL=", pw->pw_shell); > child_env[n++]=StrConcat("USER=", pw->pw_name); > child_env[n++]=StrConcat("LOGNAME=", pw->pw_name);
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 342527
: 251851 |
251853