Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt compare to stdout, thanks kre



details:   https://anonhg.NetBSD.org/src/rev/95eeb758ca89
branches:  trunk
changeset: 342028:95eeb758ca89
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 03 04:39:41 2015 +0000

description:
compare to stdout, thanks kre

diffstat:

 sbin/gpt/backup.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r d3031e5ff60d -r 95eeb758ca89 sbin/gpt/backup.c
--- a/sbin/gpt/backup.c Thu Dec 03 03:28:47 2015 +0000
+++ b/sbin/gpt/backup.c Thu Dec 03 04:39:41 2015 +0000
@@ -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 @@
                return -1;
        }
        fputs(propext, fp);
-       if (fp != stdin)
+       if (fp != stdout)
                fclose(fp);
        free(propext);
        return 0;



Home | Main Index | Thread Index | Old Index