Return to co.c CVS log | Up to [local] / src / usr.bin / rcs |
version 1.114, 2010/09/08 15:15:50 | version 1.115, 2010/10/20 19:53:53 | ||
---|---|---|---|
|
|
||
/* | /* | ||
* File inherits permissions from its ,v file | * File inherits permissions from its ,v file | ||
*/ | */ | ||
if (file->rf_fd != -1) { | if (file->rf_file != NULL) { | ||
if (fstat(file->rf_fd, &st) == -1) | if (fstat(fileno(file->rf_file), &st) == -1) | ||
err(1, "%s", file->rf_path); | err(1, "%s", file->rf_path); | ||
file->rf_mode = mode = st.st_mode; | file->rf_mode = mode = st.st_mode; | ||
} else { | } else { |