Fix problem with static linking:

> Script started on Sat May 12 22:18:47 2001
> ttyp1:bde@gamplex:/usr/src/libexec/rshd> rsh localhost ls
> rcmd: localhost: Undefined error: 0

Reported by:	bde
This commit is contained in:
Mark Murray 2001-05-16 11:05:03 +00:00
parent 72fb5ff3ec
commit 458a1c243f

View File

@ -29,7 +29,7 @@ struct pam_module * _pam_open_static_handler(const char *path)
if (strchr(clpath, '/')) {
/* ignore path and leading "/" */
clpath = strrchr(lpath, '/') + 1;
clpath = strrchr(clpath, '/') + 1;
}
/* create copy to muck with (must free before return) */
lpath = _pam_strdup(clpath);