Revert r312404 as we need to do an exp-run and fix existing ports that

rely on the previous behavior.

Requested by:	antonie (portmgr)
This commit is contained in:
Xin LI 2017-01-20 06:45:06 +00:00
parent 87e9d112de
commit 1bcffc747f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312519

View File

@ -391,7 +391,7 @@ mf_fgets(SPACE *sp, enum e_spflag spflag)
if (inplace != NULL) {
if (lstat(fname, &sb) != 0)
err(1, "%s", fname);
if (!S_ISREG(sb.st_mode))
if (!(sb.st_mode & S_IFREG))
errx(1, "%s: %s %s", fname,
"in-place editing only",
"works for regular files");