Source-Changes-HG archive

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

[src/trunk]: src/sbin/disklabel Accept 'Y' for label disk as well as 'y'



details:   https://anonhg.NetBSD.org/src/rev/0725a3acd724
branches:  trunk
changeset: 476075:0725a3acd724
user:      abs <abs%NetBSD.org@localhost>
date:      Sun Sep 05 07:27:55 1999 +0000

description:
Accept 'Y' for label disk as well as 'y'

diffstat:

 sbin/disklabel/interact.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9e345e6e9446 -r 0725a3acd724 sbin/disklabel/interact.c
--- a/sbin/disklabel/interact.c Sun Sep 05 06:31:52 1999 +0000
+++ b/sbin/disklabel/interact.c Sun Sep 05 07:27:55 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: interact.c,v 1.9 1999/05/03 09:45:01 christos Exp $    */
+/*     $NetBSD: interact.c,v 1.10 1999/09/05 07:27:55 abs Exp $        */
 
 /*
  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: interact.c,v 1.9 1999/05/03 09:45:01 christos Exp $");
+__RCSID("$NetBSD: interact.c,v 1.10 1999/09/05 07:27:55 abs Exp $");
 #endif /* lint */
 
 #include <stdio.h>
@@ -252,7 +252,7 @@
 
        i = getinput("?", "Label disk", "n", line);
 
-       if (i <= 0 || *line != 'y')
+       if (i <= 0 || (*line != 'y' && *line != 'Y') )
                return;
 
        if (checklabel(lp) != 0) {



Home | Main Index | Thread Index | Old Index