/[mailutils]/mailutils/mailbox/file_stream.c
ViewVC logotype

Diff of /mailutils/mailbox/file_stream.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.30 by polak, Thu Dec 26 10:18:24 2002 UTC revision 1.31 by gray, Sat Dec 28 10:51:09 2002 UTC
# Line 431  _file_open (stream_t stream) Line 431  _file_open (stream_t stream)
431    
432        /* Now check that: file and fd reference the same file,        /* Now check that: file and fd reference the same file,
433           file only has one link, file is plain file.  */           file only has one link, file is plain file.  */
434        if (fdbuf.st_dev != filebuf.st_dev        if (!(flags & MU_STREAM_ALLOW_LINKS)
435            || fdbuf.st_ino != filebuf.st_ino            && (fdbuf.st_dev != filebuf.st_dev
436            || fdbuf.st_nlink != 1                || fdbuf.st_ino != filebuf.st_ino
437            || filebuf.st_nlink != 1                || fdbuf.st_nlink != 1
438            || (fdbuf.st_mode & S_IFMT) != S_IFREG)                || filebuf.st_nlink != 1
439                  || (fdbuf.st_mode & S_IFMT) != S_IFREG))
440          {          {
441            mu_error (_("%s must be a plain file with one link\n"), filename);            mu_error (_("%s must be a plain file with one link\n"), filename);
442            close (fd);            close (fd);

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26