Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/xcvs/dist/src check symlink return
details: https://anonhg.NetBSD.org/src/rev/69ceae3fddb9
branches: trunk
changeset: 777897:69ceae3fddb9
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 08 20:47:17 2012 +0000
description:
check symlink return
diffstat:
external/gpl2/xcvs/dist/src/filesubr.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 9d7d5957e18a -r 69ceae3fddb9 external/gpl2/xcvs/dist/src/filesubr.c
--- a/external/gpl2/xcvs/dist/src/filesubr.c Thu Mar 08 20:46:59 2012 +0000
+++ b/external/gpl2/xcvs/dist/src/filesubr.c Thu Mar 08 20:47:17 2012 +0000
@@ -45,7 +45,8 @@
if ((rsize = islink (from)) > 0)
{
char *source = Xreadlink (from, rsize);
- symlink (source, to);
+ if (symlink (source, to) == -1)
+ error (1, errno, "cannot symlink %s to %s", source, to);
free (source);
return;
}
Home |
Main Index |
Thread Index |
Old Index