[Bug 539] open() requires 3 arguments when using O_CREAT
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Tue Apr 8 11:12:08 EST 2003
http://bugzilla.mindrot.org/show_bug.cgi?id=539
Summary: open() requires 3 arguments when using O_CREAT
Product: Portable OpenSSH
Version: 3.6p1
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: matth at eecs.berkeley.edu
In lastlog_openseek() in loginrec.c, the call to open(lastlog_file, filemode)
should have a third parameter to specify the permissions if the file is
created (0644?). If the log file does not exist, it will be created since
O_CREAT was passed to open, but the permissions will be set to whatever
garbage value is on the end of the stack. I've verified that this problem
occurs on my system if lastlog_file does not exist.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-unix-dev
mailing list