Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cd: fix an invalid free() call (Solaris patch 211-21547336)
This change is pulled from here: https://github.com/oracle/solaris-userland/blob/master/components/ksh93/patches/211-21547336.patch src/cmd/ksh93/bltins/cd_pwd.c: b_cd(): - The functions path_pwd() and path_relative() in sh/path.c may return a pointer to e_dot[] (".") as a fallback if they fail to determine a path. This is a string in read-only memory (data/msg.c), so must not be freed. A pointer to that string may end up in sh.pwd (== shp->pwd), so b_cd() needs a check for that.
- Loading branch information