void usage(void)
{
- fprintf(stderr, "Usage: %s [-s] device\n", program);
+ fprintf(stderr, "Usage: %s [-sf] device\n", program);
exit(1);
}
exit(1);
}
- if ( !S_ISBLK(st.st_mode) && !S_ISREG(st.st_mode) ) {
+ if ( !force && !S_ISBLK(st.st_mode) && !S_ISREG(st.st_mode) ) {
fprintf(stderr, "%s: not a block device or regular file (use -f to override)\n", device);
exit(1);
}