return 0;
}
- *fd = open(lastlog_file, filemode);
+ *fd = open(lastlog_file, filemode, 0600);
if ( *fd < 0) {
debug("lastlog_openseek: Couldn't open %s: %s",
lastlog_file, strerror(errno));
/* create our struct lastlog */
lastlog_construct(li, &last);
- if (!lastlog_openseek(li, &fd, O_RDWR|O_CREAT, 0600))
+ if (!lastlog_openseek(li, &fd, O_RDWR|O_CREAT))
return(0);
/* write the entry */