Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
96d7a95c
Commit
96d7a95c
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
windows build fix based on a patch by Gisle Vanem
parent
d5d55a85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/netrc.c
+4
-3
4 additions, 3 deletions
lib/netrc.c
with
4 additions
and
3 deletions
lib/netrc.c
+
4
−
3
View file @
96d7a95c
...
...
@@ -92,6 +92,8 @@ int Curl_parsenetrc(char *host,
char
state_password
=
0
;
/* Found a password keyword */
char
state_our_login
=
0
;
/* With specific_login, found *our* login name */
#define NETRC DOT_CHAR "netrc"
#ifdef CURLDEBUG
{
/* This is a hack to allow testing.
...
...
@@ -101,14 +103,13 @@ int Curl_parsenetrc(char *host,
char
*
override
=
curl_getenv
(
"CURL_DEBUG_NETRC"
);
if
(
override
)
{
printf
(
"NETRC: overridden
.netrc
file: %s
\n
"
,
home
);
printf
(
"NETRC: overridden
"
NETRC
"
file: %s
\n
"
,
home
);
netrcfile
=
override
;
netrc_alloc
=
TRUE
;
}
}
#endif
/* CURLDEBUG */
if
(
!
netrcfile
)
{
#define NETRC DOT_CHAR "netrc"
#if defined(HAVE_GETPWUID) && defined(HAVE_GETEUID)
struct
passwd
*
pw
;
pw
=
getpwuid
(
geteuid
());
...
...
@@ -121,7 +122,7 @@ int Curl_parsenetrc(char *host,
}
#endif
if
(
NULL
==
pw
)
{
if
(
!
home
)
{
home
=
curl_getenv
(
"HOME"
);
/* portable environment reader */
if
(
!
home
)
return
-
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment