svn commit: r312519 - head/usr.bin/sed
Xin LI
delphij at FreeBSD.org
Fri Jan 20 06:45:07 UTC 2017
Author: delphij
Date: Fri Jan 20 06:45:06 2017
New Revision: 312519
URL: https://svnweb.freebsd.org/changeset/base/312519
Log:
Revert r312404 as we need to do an exp-run and fix existing ports that
rely on the previous behavior.
Requested by: antonie (portmgr)
Modified:
head/usr.bin/sed/main.c
Modified: head/usr.bin/sed/main.c
==============================================================================
--- head/usr.bin/sed/main.c Fri Jan 20 06:40:12 2017 (r312518)
+++ head/usr.bin/sed/main.c Fri Jan 20 06:45:06 2017 (r312519)
@@ -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");
More information about the svn-src-head
mailing list