diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-10-28 02:55:06 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-10-28 02:55:06 +0000 |
commit | 4aca07f730ee34a1c9bfa3cf671d95ebb77d8603 (patch) | |
tree | 9856623a8f7f04e0c5987fbbd1d8a185ec3cbc2d /sys/kern | |
parent | 444b93f39ec7fc1e22431e1bf74cf3484d402ab1 (diff) |
Don't strip off the last slash in the pathname "/". cp used to
stat the pathname "" in order to decide that the pathname "/" is
a directory. This caused `cp kernel /' to fail if the kernel has
the POSIX behaviour of not allowing the pathname "" to be an alias
for ".". It presumably also caused `cp /etc/motd /' to fail in
the unlikely event that "." is not stat'able.
Be more careful about concatenating pathnames: don't check that
the pathname fits until prefixes have been discarded (the check
was too strict). Print the final pathname in error messages.
Terminate the target directory name properly for error messages.
Don't add a slash between components if there is already a slash.
Fix from FreeBSD
Diffstat (limited to 'sys/kern')
0 files changed, 0 insertions, 0 deletions