projects
/
samtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copied from SVN revision 4710 and adapted to Git.
[samtools.git]
/
bgzip.c
diff --git
a/bgzip.c
b/bgzip.c
index eb88195ec279a99f63b9a6780103d00f7e5829ca..ac2a98ea35eb2503d94652918054575b341f5cc1 100644
(file)
--- a/
bgzip.c
+++ b/
bgzip.c
@@
-50,7
+50,7
@@
static int write_open(const char *fn, int is_forced)
int fd = -1;
char c;
if (!is_forced) {
int fd = -1;
char c;
if (!is_forced) {
- if ((fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, 06
44
)) < 0 && errno == EEXIST) {
+ if ((fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, 06
66
)) < 0 && errno == EEXIST) {
printf("bgzip: %s already exists; do you wish to overwrite (y or n)? ", fn);
scanf("%c", &c);
if (c != 'Y' && c != 'y') {
printf("bgzip: %s already exists; do you wish to overwrite (y or n)? ", fn);
scanf("%c", &c);
if (c != 'Y' && c != 'y') {
@@
-60,7
+60,7
@@
static int write_open(const char *fn, int is_forced)
}
}
if (fd < 0) {
}
}
if (fd < 0) {
- if ((fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 06
44
)) < 0) {
+ if ((fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 06
66
)) < 0) {
fprintf(stderr, "bgzip: %s: Fail to write\n", fn);
exit(1);
}
fprintf(stderr, "bgzip: %s: Fail to write\n", fn);
exit(1);
}