OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Matthias Kilian (kilicvs.openbsd.org)
Date: Fri May 03 2013 - 15:43:25 CDT


CVSROOT: /cvs
Module name: src
Changes by: kilicvs.openbsd.org 2013/05/03 14:43:25

Modified files:
        usr.bin/vi/ex : ex_init.c ex_source.c
        usr.bin/vi/include: ex_extern.h

Log message:
Use open(2) / fstat(2) instead of stat(2) / open(2) for checking
proper permissions of "local" .exrc or .nexrc files.

With some hints and fixes from deraadt and tobias.

ok millert tobias

(more tweaks suggested by millert and some cleanup will be done
in separate diffs)