Bug 857 - off-by-one error in setting argv[0]
Summary: off-by-one error in setting argv[0]
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 3.8.1p1
Hardware: All Linux
: P3 minor
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-01 20:29 AEST by Al Smith
Modified: 2004-09-11 13:18 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Al Smith 2004-05-01 20:29:34 AEST
# ps -ef --forest
root     28465     1  0 Apr19 ?        00:00:01 /sys/inet/ssh/sbin/sshd
root      1271 28465  0 Apr30 ?        00:00:00  \_ sshd: ajs [priv]      d
ajs       1273  1271  0 Apr30 ?        00:00:01  |   \_ sshd: ajs@pts/1       d

Note the trailing 'd' on processes 1271 and 1273.

A trivial 'bug', I know...
Comment 1 Darren Tucker 2004-05-02 14:46:02 AEST
I can't reproduce on my RH9 box.  What kind on Linux system (distribution,
kernel, glibc)?  Does it have setproctitile (check for HAVE_SETPROCTITLE in
config.h).
Comment 2 Al Smith 2004-05-02 18:35:05 AEST
Slackware (happens on both 8.1 and 9.1); linux kernel is 2.4.26; glibc is 2.2.5 
on the slackware-8.1 systems and 2.3.2 on the slackware 9.1 systems.

HAVE_SETPROCTITLE is not defined on either distribution.
Comment 3 Al Smith 2004-08-21 03:43:22 AEST
Seems to be fixed in 3.9p1.
Comment 4 Darren Tucker 2004-08-21 12:45:37 AEST
That's great, but as far as I can tell there's been no changes that might have
affected it, and I was unable to reproduce it here.  Is it possible it was
something specific to your system?