Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-8] src



Module Name:    src
Committed By:   msaitoh
Date:           Thu Apr 12 01:45:58 UTC 2018

Modified Files:
        src/external/bsd/nvi/dist/common [netbsd-8]: recover.c
        src/lib/libc/stdio [netbsd-8]: fdopen.c flags.c fopen.c freopen.c
        src/lib/libc/sys [netbsd-8]: open.2
        src/sys/kern [netbsd-8]: vfs_vnops.c
        src/sys/sys [netbsd-8]: fcntl.h

Log Message:
Pull up following revision(s) (requested by christos in ticket #741):
        lib/libc/stdio/flags.c: revision 1.19
        lib/libc/stdio/fdopen.c: revision 1.18
        sys/kern/vfs_vnops.c: revision 1.196
        lib/libc/stdio/freopen.c: revision 1.20
        lib/libc/stdio/fopen.c: revision 1.17
        external/bsd/nvi/dist/common/recover.c: revision 1.10
        external/bsd/nvi/dist/common/recover.c: revision 1.11
        lib/libc/sys/open.2: revision 1.58
        sys/sys/fcntl.h: revision 1.49
make the checkok test stricter to avoid races, and use O_REGULAR.
Instead of opening the file and using popen(3), pass the file descriptor
to sendmail directory. Idea and code from Todd Miller.
Add O_REGULAR to enforce opening of only regular files
(like we have O_DIRECTORY for directories).
This is better than open(, O_NONBLOCK), fstat()+S_ISREG() because opening
devices can have side effects.


To generate a diff of this commit:
cvs rdiff -u -r1.5.22.1 -r1.5.22.2 src/external/bsd/nvi/dist/common/recover.c
cvs rdiff -u -r1.17 -r1.17.6.1 src/lib/libc/stdio/fdopen.c
cvs rdiff -u -r1.17 -r1.17.22.1 src/lib/libc/stdio/flags.c
cvs rdiff -u -r1.15 -r1.15.24.1 src/lib/libc/stdio/fopen.c
cvs rdiff -u -r1.19 -r1.19.24.1 src/lib/libc/stdio/freopen.c
cvs rdiff -u -r1.57 -r1.57.2.1 src/lib/libc/sys/open.2
cvs rdiff -u -r1.195 -r1.195.6.1 src/sys/kern/vfs_vnops.c
cvs rdiff -u -r1.48.8.1 -r1.48.8.2 src/sys/sys/fcntl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index