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/da8858538247
branches:  trunk
changeset: 812170:da8858538247
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 f47db249bdb2 -r da8858538247 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