Module Name: src
Committed By: christos
Date: Thu Dec 3 04:39:41 UTC 2015
Modified Files:
src/sbin/gpt: backup.c
Log Message:
compare to stdout, thanks kre
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sbin/gpt/backup.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/gpt/backup.c
diff -u src/sbin/gpt/backup.c:1.14 src/sbin/gpt/backup.c:1.15
--- src/sbin/gpt/backup.c:1.14 Wed Dec 2 20:07:28 2015
+++ src/sbin/gpt/backup.c Wed Dec 2 23:39:41 2015
@@ -33,7 +33,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: backup.c,v 1.14 2015/12/03 01:07:28 christos Exp $");
+__RCSID("$NetBSD: backup.c,v 1.15 2015/12/03 04:39:41 christos Exp $");
#endif
#include <sys/bootblock.h>
@@ -313,7 +313,7 @@ backup(gpt_t gpt, const char *outfile)
return -1;
}
fputs(propext, fp);
- if (fp != stdin)
+ if (fp != stdout)
fclose(fp);
free(propext);
return 0;