Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
60d538dc
Commit
60d538dc
authored
Mar 05, 2010
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netstat: PIDs can be long, Bug #199702 of Ubuntu Launchpad, Bug #16913 of Berlios
parent
74f98bb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
netstat.c
netstat.c
+3
-3
No files found.
netstat.c
View file @
60d538dc
...
...
@@ -6,7 +6,7 @@
* NET-3 Networking Distribution for the LINUX operating
* system.
*
* Version: $Id: netstat.c,v 1.6
8 2009/12/31 19:54:16 vapier
Exp $
* Version: $Id: netstat.c,v 1.6
9 2010-03-05 15:35:02 ecki
Exp $
*
* Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
...
...
@@ -326,7 +326,7 @@ static int extract_type_1_socket_inode(const char lname[], unsigned long * inode
strncpy
(
inode_str
,
lname
+
PRG_SOCKET_PFXl
,
inode_str_len
);
inode_str
[
inode_str_len
]
=
'\0'
;
*
inode_p
=
strtol
(
inode_str
,
&
serr
,
0
);
if
(
!
serr
||
*
serr
||
*
inode_p
<
0
||
*
inode_p
>=
INT
_MAX
)
if
(
!
serr
||
*
serr
||
*
inode_p
<
0
||
*
inode_p
>=
LONG
_MAX
)
return
(
-
1
);
}
return
(
0
);
...
...
@@ -347,7 +347,7 @@ static int extract_type_2_socket_inode(const char lname[], unsigned long * inode
char
*
serr
;
*
inode_p
=
strtol
(
lname
+
PRG_SOCKET_PFX2l
,
&
serr
,
0
);
if
(
!
serr
||
*
serr
||
*
inode_p
<
0
||
*
inode_p
>=
INT
_MAX
)
if
(
!
serr
||
*
serr
||
*
inode_p
<
0
||
*
inode_p
>=
LONG
_MAX
)
return
(
-
1
);
}
return
(
0
);
...
...
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