aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--syslinux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syslinux.c b/syslinux.c
index 3551a044..b4054947 100644
--- a/syslinux.c
+++ b/syslinux.c
@@ -100,7 +100,7 @@ static u_int32_t get_32(unsigned char *p)
void usage(void)
{
- fprintf(stderr, "Usage: %s [-s] device\n", program);
+ fprintf(stderr, "Usage: %s [-sf] device\n", program);
exit(1);
}
@@ -161,7 +161,7 @@ int main(int argc, char *argv[])
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);
}