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");
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to