Module Name: src Committed By: christos Date: Thu Mar 8 20:47:17 UTC 2012
Modified Files: src/external/gpl2/xcvs/dist/src: filesubr.c Log Message: check symlink return To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl2/xcvs/dist/src/filesubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl2/xcvs/dist/src/filesubr.c diff -u src/external/gpl2/xcvs/dist/src/filesubr.c:1.3 src/external/gpl2/xcvs/dist/src/filesubr.c:1.4 --- src/external/gpl2/xcvs/dist/src/filesubr.c:1.3 Sat Sep 5 02:18:55 2009 +++ src/external/gpl2/xcvs/dist/src/filesubr.c Thu Mar 8 15:47:17 2012 @@ -45,7 +45,8 @@ copy_file (const char *from, const char 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; }