Bug 10036 - finger segfaults with NIS and - entry in /etc/passwd
finger segfaults with NIS and - entry in /etc/passwd
Product: Red Hat Linux
Classification: Retired
Component: finger (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Crutcher Dunnavant
Depends On:
  Show dependency treegraph
Reported: 2000-03-07 13:32 EST by Paul Wouters
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-03-07 13:32:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Paul Wouters 2000-03-07 13:32:57 EST
When there is a - entry in the passwd file, eg:
that either has zero or one colon's on its line, finger segfaults

Starting program: /usr/bin/finger test

Program received signal SIGSEGV, Segmentation fault.
strncpy (s1=0x804cdc0 "", s2=0x0, n=1024) at
41	../sysdeps/generic/strncpy.c: No such file or directory.
(gdb) bt
#0  strncpy (s1=0x804cdc0 "", s2=0x0, n=1024)
    at ../sysdeps/generic/strncpy.c:41
#1  0x804a936 in strcpy () at ../sysdeps/generic/strcpy.c:30
#2  0x8049270 in strcpy () at ../sysdeps/generic/strcpy.c:30
#3  0x8049381 in strcpy () at ../sysdeps/generic/strcpy.c:30
#4  0x80490f7 in strcpy () at ../sysdeps/generic/strcpy.c:30
#5  0x4002e1eb in __libc_start_main (main=0x8049000 <strcpy+204>, argc=2,
    argv=0xbffffd64, init=0x8048b94, fini=0x804b01c <strcpy+8424>,
    rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffd5c)
    at ../sysdeps/generic/libc-start.c:90

Note You need to log in before you can comment on or make changes to this bug.