Date: Mon, 28 Oct 2013 23:02:26 GMT From: dpl@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r259147 - in soc2013/dpl/head/usr.bin/bsdiff: bsdiff bspatch Message-ID: <201310282302.r9SN2QZA045563@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dpl Date: Mon Oct 28 23:02:26 2013 New Revision: 259147 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=259147 Log: Add comments regarding future compatibility with Casper. Modified: soc2013/dpl/head/usr.bin/bsdiff/bsdiff/bsdiff.c soc2013/dpl/head/usr.bin/bsdiff/bspatch/bspatch.c Modified: soc2013/dpl/head/usr.bin/bsdiff/bsdiff/bsdiff.c ============================================================================== --- soc2013/dpl/head/usr.bin/bsdiff/bsdiff/bsdiff.c Mon Oct 28 22:54:28 2013 (r259146) +++ soc2013/dpl/head/usr.bin/bsdiff/bsdiff/bsdiff.c Mon Oct 28 23:02:26 2013 (r259147) @@ -223,7 +223,10 @@ err(1,"%s",argv[1]); if ((newfd = open(argv[2],O_RDONLY|O_BINARY,0)) < 0) err(1,"%s",argv[1]); - /* Create the patch file */ + /* + * Create the patch file. + * It should get unliked if there's any error, possibly using Casper. + */ if ((pf = fopen(argv[3],"wb")) == NULL) err(1,"%s",argv[3]); Modified: soc2013/dpl/head/usr.bin/bsdiff/bspatch/bspatch.c ============================================================================== --- soc2013/dpl/head/usr.bin/bsdiff/bspatch/bspatch.c Mon Oct 28 22:54:28 2013 (r259146) +++ soc2013/dpl/head/usr.bin/bsdiff/bspatch/bspatch.c Mon Oct 28 23:02:26 2013 (r259147) @@ -78,9 +78,13 @@ /* Capsicum */ if ((oldfd = open(argv[1],O_RDONLY|O_BINARY,0)) < 0) err(1,"%s",argv[1]); + /* + * Create the new file. + * It should get unliked if there's any error, possibly using Casper. + */ if ((newfd = open(argv[2],O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666)) < 0) err(1,"%s",argv[1]); - /* Open patch file */ + /* Open the patch file. */ if ((f = fopen(argv[3], "rb")) == NULL) err(1, "fopen(%s)", argv[3]); if ((cpf = fopen(argv[3], "rb")) == NULL)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310282302.r9SN2QZA045563>