Age | Commit message (Collapse) | Author |
|
|
|
Also, use MAXPATHLEN, not MAXPATHLEN+1
|
|
|
|
|
|
|
|
>NFS doesn't support chflags; ignore errors unless there's reason
>to believe we're losing bits. (Note, this still won't be right
>if the server supports flags and we were trying to *remove* flags
>on a file that we copied, i.e., that we didn't create.)
|
|
|
|
Fixes core dump problem with ``-p'' and symbolic links. Noted by
Carsten Hammer <chammer@post.uni-bielefeld.de>.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|