diff options
author | hpa <hpa> | 1999-03-19 21:04:32 +0000 |
---|---|---|
committer | hpa <hpa> | 1999-03-19 21:04:32 +0000 |
commit | 701787beabb8a45ccf028f320bf4c60f2acc72eb (patch) | |
tree | 58cf0244bbe394b1441b5be1ecc9d6407f48f27f /syslinux.c | |
parent | a41090f35be3114f09f6dd88e29fa1e4e310bd2b (diff) | |
download | syslinux-701787beabb8a45ccf028f320bf4c60f2acc72eb.tar.gz |
Add test for force where it counts
Diffstat (limited to 'syslinux.c')
-rw-r--r-- | syslinux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |