Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
b3bc5c68
Commit
b3bc5c68
authored
Oct 15, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use $HOME before anything else to determine the home directory. Patch by Benjamin Cama
parent
edead8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
src/modules/configuration.c
src/modules/configuration.c
+8
-10
No files found.
src/modules/configuration.c
View file @
b3bc5c68
...
...
@@ -1843,25 +1843,23 @@ static char *GetDir( vlc_bool_t b_appdata )
return
FromWide
(
whomedir
);
#endif
psz_localhome
=
getenv
(
"HOME"
);
if
(
psz_localhome
==
NULL
)
{
#if defined(HAVE_GETPWUID)
struct
passwd
*
p_pw
;
(
void
)
b_appdata
;
struct
passwd
*
p_pw
;
(
void
)
b_appdata
;
if
(
(
p_pw
=
getpwuid
(
getuid
()
)
)
==
NULL
)
if
(
(
p_pw
=
getpwuid
(
getuid
()
)
)
!=
NULL
)
psz_localhome
=
p_pw
->
pw_dir
;
else
#endif
{
psz_localhome
=
getenv
(
"HOME"
);
if
(
psz_localhome
==
NULL
)
{
psz_localhome
=
getenv
(
"TMP"
);
if
(
psz_localhome
==
NULL
)
psz_localhome
=
"/tmp"
;
}
}
#if defined(HAVE_GETPWUID)
else
psz_localhome
=
p_pw
->
pw_dir
;
#endif
return
FromLocaleDup
(
psz_localhome
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment