Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 223595 Details for
Bug 309457
sys-auth/polkit-0.96 fails to build on FreeBSD
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix
0001-pkexec-use-standard-getcwd-instead-of-get_current_di.patch (text/plain), 1000 bytes, created by
Alexis Ballier
on 2010-03-15 08:08:40 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Alexis Ballier
Created:
2010-03-15 08:08:40 UTC
Size:
1000 bytes
patch
obsolete
>From 8b34cb305b8d5023527d130058ef8e666f2a9d31 Mon Sep 17 00:00:00 2001 >From: Alexis Ballier <aballier@gentoo.org> >Date: Mon, 15 Mar 2010 09:02:24 +0100 >Subject: [PATCH] pkexec: use standard getcwd instead of get_current_dir_name. > This fixes polkit build on FreeBSD. > >--- > src/programs/pkexec.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c >index 17c191e..60870be 100644 >--- a/src/programs/pkexec.c >+++ b/src/programs/pkexec.c >@@ -375,6 +375,7 @@ main (int argc, char *argv[]) > gchar *path; > struct passwd pwstruct; > gchar pwbuf[8192]; >+ gchar cwdbuf[PATH_MAX]; > gchar *s; > const gchar *environment_variables_to_save[] = { > "SHELL", >@@ -437,7 +438,7 @@ main (int argc, char *argv[]) > goto out; > } > >- original_cwd = g_strdup (get_current_dir_name ()); >+ original_cwd = g_strdup (getcwd(cwdbuf,PATH_MAX)); > if (original_cwd == NULL) > { > g_printerr ("Error getting cwd.\n"); >-- >1.7.0.2 >
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 309457
: 223595