diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/record.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c index 79523c69..bd617dbf 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -546,7 +546,10 @@ append_record(const char *fpath, const fileheader_t * record, int size) struct stat st; if ((fd = open(fpath, O_WRONLY | O_CREAT, 0644)) == -1) { - perror("open"); + char buf[STRLEN]; + assert(errno != EISDIR); + sprintf(buf, "id(%s), open(%s)", cuser.userid, fpath); + perror(buf); return -1; } flock(fd, LOCK_EX); |