From b682074ae4639c9821bdf3a6852c312e99be07b2 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sun, 28 Oct 2007 10:02:08 +0000 Subject: [PATCH] Don't print Drive serial number if -S (setting shell variables) is specified. --- sbin/fdisk/fdisk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index db660b75f5c4..107ec3ae877b 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -1,4 +1,4 @@ -/* $NetBSD: fdisk.c,v 1.106 2007/09/04 00:34:58 tls Exp $ */ +/* $NetBSD: fdisk.c,v 1.107 2007/10/28 10:02:08 tsutsui Exp $ */ /* * Mach Operating System @@ -39,7 +39,7 @@ #include #ifndef lint -__RCSID("$NetBSD: fdisk.c,v 1.106 2007/09/04 00:34:58 tls Exp $"); +__RCSID("$NetBSD: fdisk.c,v 1.107 2007/10/28 10:02:08 tsutsui Exp $"); #endif /* not lint */ #define MBRPTYPENAMES @@ -593,7 +593,7 @@ print_s0(int which) } #endif - if (mboot.mbr_dsn != 0) + if (!sh_flag && mboot.mbr_dsn != 0) printf("Drive serial number: %"PRId32" (0x%08x)\n", le32toh(mboot.mbr_dsn), le32toh(mboot.mbr_dsn));