SCCS-vsn: bin/cp/cp.c 5.9
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)cp.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)cp.c 5.9 (Berkeley) %G%";
copy_link(exists)
int exists;
{
copy_link(exists)
int exists;
{
- if (readlink(from.p_path, link, sizeof(link)) == -1) {
+ if ((len = readlink(from.p_path, link, sizeof(link))) == -1) {
error(from.p_path);
return;
}
error(from.p_path);
return;
}
if (exists && unlink(to.p_path)) {
error(to.p_path);
return;
if (exists && unlink(to.p_path)) {
error(to.p_path);
return;