replacement getwd(3).

Casper H.S. Dik casper at fwi.uva.nl
Wed Nov 7 20:57:49 AEST 1990


I've written a replacement getwd(3) for SunOS 4.x that returns ~user/tail
(with ~user expanded as in /etc/passwd) if the current directory
is a subdirectory of a user's home directory.
[The original might return: /tmp_mnt/foo/bar/bletch/usrs/casper/dir
 the new returns /usr/casper/dir]

I've installed it in my own copy of the shared library and thinks seem
to work fine.

My question is: what utilities (if any) will break because of this?

--
Casper H.S. Dik, casper at fwi.uva.nl,	NIC: !cd151



More information about the Comp.unix.programmer mailing list