summaryrefslogtreecommitdiff
path: root/syslinux.c
diff options
context:
space:
mode:
authorhpa <hpa>1999-03-19 21:04:32 +0000
committerhpa <hpa>1999-03-19 21:04:32 +0000
commit701787beabb8a45ccf028f320bf4c60f2acc72eb (patch)
tree58cf0244bbe394b1441b5be1ecc9d6407f48f27f /syslinux.c
parenta41090f35be3114f09f6dd88e29fa1e4e310bd2b (diff)
downloadsyslinux-701787beabb8a45ccf028f320bf4c60f2acc72eb.tar.gz
Add test for force where it counts
Diffstat (limited to 'syslinux.c')
-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);
}