+ if (flag(c)) {
+ struct stat sb;
+ char response[128];
+ int tty;
+
+ if (stat(defdev, &sb) >= 0 && (sb.st_mode & S_IFMT) == S_IFREG)
+ goto ignore;
+ tty = open("/dev/tty", O_RDWR);
+#define SURE "Are you sure you want to clobber the floppy? "
+ write(tty, SURE, sizeof (SURE));
+ read(tty, response, sizeof (response));
+ if (*response != 'y')
+ exit(50);
+ close(tty);
+ignore:
+ ;
+ }