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
ef8741d2
Commit
ef8741d2
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
removed the perror() outputs as they did nothing good to us
parent
56548f9a
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/getpass.c
+7
-7
7 additions, 7 deletions
lib/getpass.c
with
7 additions
and
7 deletions
lib/getpass.c
+
7
−
7
View file @
ef8741d2
...
...
@@ -7,7 +7,7 @@
* 2) The prototype for getpass is not changed from:
* int getpass_r(const char *prompt, char *buffer, int buflen)
* 3) This source code is not used outside of this(getpass.c) file.
*
3
) Any changes to this(getpass.c) source code are made publicly available.
*
4
) Any changes to this(getpass.c) source code are made publicly available.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
...
...
@@ -112,25 +112,25 @@ int getpass_r(const char *prompt, char *buffer, int buflen)
#ifdef HAVE_TERMIOS_H
if
(
tcgetattr
(
outfd
,
&
orig
)
!=
0
)
{
perror
(
"tcgetattr"
);
;
/*
perror("tcgetattr");
*/
}
noecho
=
orig
;
noecho
.
c_lflag
&=
~
ECHO
;
if
(
tcsetattr
(
outfd
,
TCSANOW
,
&
noecho
)
!=
0
)
{
perror
(
"tcgetattr"
);
;
/*
perror("tcgetattr");
*/
}
#else
# ifdef HAVE_TERMIO_H
if
(
ioctl
(
outfd
,
TCGETA
,
&
orig
)
!=
0
)
{
perror
(
"ioctl"
);
;
/*
perror("ioctl");
*/
}
noecho
=
orig
;
noecho
.
c_lflag
&=
~
ECHO
;
if
(
ioctl
(
outfd
,
TCSETA
,
&
noecho
)
!=
0
)
{
perror
(
"ioctl"
);
;
/*
perror("ioctl");
*/
}
# else
# endif
...
...
@@ -159,13 +159,13 @@ int getpass_r(const char *prompt, char *buffer, int buflen)
#ifdef HAVE_TERMIOS_H
if
(
tcsetattr
(
outfd
,
TCSAFLUSH
,
&
orig
)
!=
0
)
{
perror
(
"tcgetattr"
);
;
/*
perror("tcgetattr");
*/
}
#else
# ifdef HAVE_TERMIO_H
if
(
ioctl
(
outfd
,
TCSETA
,
&
orig
)
!=
0
)
{
perror
(
"ioctl"
);
;
/*
perror("ioctl");
*/
}
# else
# endif
...
...
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