]> code.delx.au - gnu-emacs/blobdiff - lib-src/movemail.c
(Maintaining) [ifnottex]: Add menu entry for "Emerge".
[gnu-emacs] / lib-src / movemail.c
index f82bebd4f2b79ccfd372dcb388b8a7449b760e66..1f73ee88ba88a38c6492e42584934686eec1a983 100644 (file)
@@ -1,6 +1,7 @@
 /* movemail foo bar -- move file foo to file bar,
    locking file foo the way /bin/mail respects.
-   Copyright (C) 1986, 92, 93, 94, 96, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1986, 1992, 1993, 1994, 1996, 1999, 2002, 2003, 2004,
+                 2005, 2006 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -465,6 +466,8 @@ main (argc, argv)
        while (1)
          {
            nread = read (indesc, buf, sizeof buf);
+           if (nread < 0)
+             pfatal_with_name (inname);
            if (nread != write (outdesc, buf, nread))
              {
                int saved_errno = errno;