Quote disktab(5) entry name so that label names with spaces

(e.g., "bsd disk") work CVS:
This commit is contained in:
jonathan 1997-12-02 11:00:59 +00:00
parent ca66e22a4a
commit 6266fb93be
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: disks.c,v 1.14 1997/11/13 03:06:44 jonathan Exp $ */
/* $NetBSD: disks.c,v 1.15 1997/12/02 11:00:59 jonathan Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -278,7 +278,7 @@ void write_disklabel (void)
#ifdef DISKLABEL_CMD
/* disklabel the disk */
printf ("%s", msg_string (MSG_dodisklabel));
run_prog_or_continue ("%s %s %s", DISKLABEL_CMD, diskdev, bsddiskname);
run_prog_or_continue ("%s %s \"%s\"", DISKLABEL_CMD, diskdev, bsddiskname);
#endif
}