bugzilla-daemon at mindrot.org
2003-Apr-08 01:12 UTC
[Bug 539] open() requires 3 arguments when using O_CREAT
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.
bugzilla-daemon at mindrot.org
2003-Apr-09 09:40 UTC
[Bug 539] open() requires 3 arguments when using O_CREAT
http://bugzilla.mindrot.org/show_bug.cgi?id=539 djm at mindrot.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From djm at mindrot.org 2003-04-09 19:40 ------- fixed, thanks ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Maybe Matching Threads
- [PATCH] openssh - loginrec.c - Non-atomic file operations.
- [Bug 492] New: Spurious error message from loginrec when attempting to login in with the highest uid for the first time.
- [Bug 110] New: bogus error messages in lastlog_get_entry()
- [2.1.1p4] utmp patch for SunOS 4.1.x
- [2.1.1p4] utmp related patches plus unresolved bugs description