sort: deindent openfile
This commit is contained in:
parent
f079ef8aa4
commit
958b0d4642
@ -527,9 +527,9 @@ openfile(const char *fn, const char *mode)
|
||||
{
|
||||
FILE *file;
|
||||
|
||||
if (strcmp(fn, "-") == 0) {
|
||||
if (strcmp(fn, "-") == 0)
|
||||
return ((mode && mode[0] == 'r') ? stdin : stdout);
|
||||
} else {
|
||||
|
||||
mode_t orig_file_mask = 0;
|
||||
int is_tmp = file_is_tmp(fn);
|
||||
|
||||
@ -566,7 +566,6 @@ openfile(const char *fn, const char *mode)
|
||||
|
||||
if (is_tmp && (mode[0] == 'w'))
|
||||
umask(orig_file_mask);
|
||||
}
|
||||
|
||||
return (file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user